summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-03-12 15:09:03 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-03-13 14:14:12 +0100
commit6ab9f0cfcd28124caf8e02219a39c753bce7d1ea (patch)
treeea0aaba740057b096959183294ba9927a5e4c747 /starmath
parentfe6da2feb57c3d5e355a36f6b8ac09b48412ff39 (diff)
SDI: don't #define/#undef names of actual classes for slot headers
Visual Studio 2015/2017 cannot handle that correctly, and emits a lot of intellisense errors. So, just prepend the define with "ShellClass_" Change-Id: I473ceb7e0a88e114b92e6342fd4ae63015cafd3e Reviewed-on: https://gerrit.libreoffice.org/51135 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/smmod.cxx2
-rw-r--r--starmath/source/view.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 877625b83ae2..dc2e5fffd255 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -84,7 +84,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::uno;
-#define SmDocShell
+#define ShellClass_SmDocShell
#include <smslots.hxx>
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index 02a8fec7a572..ba52877e6e21 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -37,7 +37,7 @@
#include <svx/modctrl.hxx>
-#define SmModule
+#define ShellClass_SmModule
#include <smslots.hxx>
OUString SmResId(const char* pId)
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 4dc0db132ec5..87aff89a864f 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -80,7 +80,7 @@
#define CMD_BOX_PADDING 4
#define CMD_BOX_PADDING_TOP 10
-#define SmViewShell
+#define ShellClass_SmViewShell
#include <smslots.hxx>
using namespace css;