From 9176441f1cc21f7e5d07808b3dd86b726a645e84 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Fri, 13 Sep 2019 11:31:22 +0200 Subject: dont define PROPERTY_NONE multiple times MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia4af4a281058131d41c2a65abbce58bf5f7a38b6 Reviewed-on: https://gerrit.libreoffice.org/78866 Tested-by: Jenkins Reviewed-by: Björn Michaelsen --- include/svl/itemprop.hxx | 3 +++ starmath/source/unomodel.cxx | 5 +---- sw/inc/unomap.hxx | 2 -- sw/source/uibase/uno/unomod.cxx | 18 ++++++++++-------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index b0d94332f466..a173fcf06955 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -28,6 +28,9 @@ #include #include +// values from com/sun/star/beans/PropertyAttribute +#define PROPERTY_NONE 0 + /// map a property between beans::XPropertySet and SfxPoolItem struct SfxItemPropertyMapEntry { diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index db7668ad08c6..823f864a458e 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -153,10 +154,6 @@ SmPrintUIOptions::SmPrintUIOptions() // class SmModel - -// values from com/sun/star/beans/PropertyAttribute -#define PROPERTY_NONE 0 - enum SmModelPropertyHandles { HANDLE_FORMULA, diff --git a/sw/inc/unomap.hxx b/sw/inc/unomap.hxx index f63f4ab8f168..36f8766e0e03 100644 --- a/sw/inc/unomap.hxx +++ b/sw/inc/unomap.hxx @@ -24,8 +24,6 @@ class SfxItemPropertySet; struct SfxItemPropertyMapEntry; -#define PROPERTY_NONE 0 - #define PROPERTY_MAP_TEXT_CURSOR 0 #define PROPERTY_MAP_CHAR_STYLE 1 #define PROPERTY_MAP_PARA_STYLE 2 diff --git a/sw/source/uibase/uno/unomod.cxx b/sw/source/uibase/uno/unomod.cxx index 674a62907cd8..393a7dd26dbf 100644 --- a/sw/source/uibase/uno/unomod.cxx +++ b/sw/source/uibase/uno/unomod.cxx @@ -17,9 +17,18 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include +#include +#include +#include +#include #include #include +#include +#include +#include +#include + +#include #include #include #include @@ -31,16 +40,9 @@ #include #include #include -#include #include #include -#include -#include -#include -#include #include -#include -#include using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; -- cgit