summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorGeorg Ziegler <clc_xce@tutanota.com>2022-06-19 14:52:04 +0200
committerGeorg Ziegler <clc_xce@tutanota.com>2022-06-19 14:53:40 +0200
commitc4404e2918d026773c56a65996ca66c6cb5fb115 (patch)
treeb88d3c49401e1fb7774413e8e899e1fcd6bca13f /editor
parent958254ec3eeb5d55888b5bcbf121d2f55b88a9de (diff)
Move definition of const int ERROR_CODE to be reachable by all functions.
Diffstat (limited to 'editor')
-rw-r--r--editor/project_converter_3_to_4.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp
index 515d09c3fc..dfe40f9d4f 100644
--- a/editor/project_converter_3_to_4.cpp
+++ b/editor/project_converter_3_to_4.cpp
@@ -32,14 +32,16 @@
#include "modules/modules_enabled.gen.h"
+const int ERROR_CODE = 77;
+
#ifdef MODULE_REGEX_ENABLED
+
#include "modules/regex/regex.h"
#include "core/os/time.h"
#include "core/templates/hash_map.h"
#include "core/templates/list.h"
-const int ERROR_CODE = 77;
const int CONVERSION_MAX_FILE_SIZE = 1024 * 1024 * 4; // 4 MB
static const char *enum_renames[][2] = {