summaryrefslogtreecommitdiffstats
path: root/basic/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 09:49:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 09:05:53 +0200
commit8c0059e1c997d08133cb691c1daad8693d991d2f (patch)
treee9cd314780f1340afb2dc9444bad24fddaa2da72 /basic/source
parenttdf#127446 vcl image lazy-load: fix custom size handling of metafiles (diff)
downloadcore-8c0059e1c997d08133cb691c1daad8693d991d2f.tar.gz
core-8c0059e1c997d08133cb691c1daad8693d991d2f.zip
loplugin:duplicate-defines in basic
Change-Id: I0e400bdd9cfc5fd123c574e05c4aca55b782395f Reviewed-on: https://gerrit.libreoffice.org/79831 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/inc/runtime.hxx2
-rw-r--r--basic/source/runtime/runtime.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx
index 11da4275c77b..532f0d9a4b17 100644
--- a/basic/source/inc/runtime.hxx
+++ b/basic/source/inc/runtime.hxx
@@ -81,7 +81,7 @@ struct SbiForStack { // for/next stack:
{}
};
-#define MAXRECURSION 500
+#define MAXRECURSION 500 //to prevent dead-recursions
enum class SbAttributes {
NONE = 0x0000,
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 59daf1531d2a..52f7c645c640 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -119,8 +119,6 @@ struct SbiArgv { // Argv stack:
nArgc(nArgc_) {}
};
-#define MAXRECURSION 500 //to prevent dead-recursions
-
struct SbiGosub { // GOSUB-Stack:
const sal_uInt8* pCode; // Return-Pointer
sal_uInt16 nStartForLvl; // #118235: For Level in moment of gosub