diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-05 22:02:49 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-06 21:01:25 +0100 |
commit | 221ae913dbeac56ce5674ad4ac3ce3a8d3ba8ae8 (patch) | |
tree | b497c06a9bac32fc72c749085d7d6aaf45f838d3 /sc | |
parent | 46ada3f8e748533398daf687ad5f37c4c0528b83 (diff) |
Move variable nMaxFieldIndex out of namespace
Change-Id: I9396abb722b24d8ee6b2d5f8fccac140a1014436
Reviewed-on: https://gerrit.libreoffice.org/68784
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldgroupitemobj.cxx | 3 | ||||
-rw-r--r-- | sc/qa/extras/scdatapilotfieldgroupsobj.cxx | 3 | ||||
-rw-r--r-- | sc/qa/extras/scdatapilotitemobj.cxx | 4 | ||||
-rw-r--r-- | sc/qa/extras/scdatapilotitemsobj.cxx | 3 | ||||
-rw-r--r-- | sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx | 3 |
5 files changed, 5 insertions, 11 deletions
diff --git a/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx b/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx index b715a521359d..a2b43d7ee731 100644 --- a/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx +++ b/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx @@ -40,8 +40,6 @@ using namespace css; namespace sc_apitest { -const auto nMaxFieldIndex = 6; - class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest, public apitest::XNamed, public apitest::XServiceInfo @@ -67,6 +65,7 @@ public: CPPUNIT_TEST_SUITE_END(); private: + static const int nMaxFieldIndex = 6; uno::Reference<lang::XComponent> m_xComponent; }; diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx index 8bdaf055af48..148c04af4093 100644 --- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx +++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx @@ -44,8 +44,6 @@ using namespace css; namespace sc_apitest { -const auto nMaxFieldIndex = 6; - class ScDataPilotFieldGroupsObj : public CalcUnoApiTest, public apitest::XElementAccess, public apitest::XEnumerationAccess, @@ -94,6 +92,7 @@ public: CPPUNIT_TEST_SUITE_END(); private: + static const int nMaxFieldIndex = 6; uno::Reference<lang::XComponent> m_xComponent; }; diff --git a/sc/qa/extras/scdatapilotitemobj.cxx b/sc/qa/extras/scdatapilotitemobj.cxx index 5d182624c00f..a11f2e571623 100644 --- a/sc/qa/extras/scdatapilotitemobj.cxx +++ b/sc/qa/extras/scdatapilotitemobj.cxx @@ -48,12 +48,10 @@ public: CPPUNIT_TEST_SUITE_END(); private: - static sal_Int32 nMaxFieldIndex; + static const int nMaxFieldIndex = 6; uno::Reference< lang::XComponent > mxComponent; }; -sal_Int32 ScDataPilotItemObj::nMaxFieldIndex = 6; - ScDataPilotItemObj::ScDataPilotItemObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") { diff --git a/sc/qa/extras/scdatapilotitemsobj.cxx b/sc/qa/extras/scdatapilotitemsobj.cxx index 720a2ad9e8ec..69c6c987abe6 100644 --- a/sc/qa/extras/scdatapilotitemsobj.cxx +++ b/sc/qa/extras/scdatapilotitemsobj.cxx @@ -40,8 +40,6 @@ using namespace css; namespace sc_apitest { -const auto nMaxFieldIndex = 6; - class ScDataPilotItemsObj : public CalcUnoApiTest, public apitest::XElementAccess, public apitest::XEnumerationAccess, @@ -82,6 +80,7 @@ public: CPPUNIT_TEST_SUITE_END(); private: + static const int nMaxFieldIndex = 6; uno::Reference<lang::XComponent> m_xComponent; }; diff --git a/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx b/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx index 0e123b098853..423714b637aa 100644 --- a/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx +++ b/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx @@ -34,8 +34,6 @@ using namespace com::sun::star; namespace sc_apitest { -const auto nMaxFieldIndex = 6; - class ScIndexEnumeration_DataPilotItemsEnumeration : public CalcUnoApiTest, public apitest::XEnumeration { @@ -55,6 +53,7 @@ public: CPPUNIT_TEST_SUITE_END(); private: + static const int nMaxFieldIndex = 6; uno::Reference<lang::XComponent> m_xComponent; }; |