summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-09 15:40:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-09 15:40:42 +0100
commite7b35ed3e36dc04d7544ca8fc0ac18141dec91cb (patch)
treebb8a813dc518fcf5ec380dc0b4c2ace89104f4cb /svl
parent188b3b6dfd8353a02652f21c03ff125bcca7938e (diff)
New loplugin:externvar: svl
Change-Id: Ib8a198c52aa6b92d602e0477d4af7e30f5d5baee
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/poolitem.cxx10
-rw-r--r--svl/source/items/style.cxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index e5472063a418..d23bbe26a3a9 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -28,11 +28,11 @@
#if OSL_DEBUG_LEVEL > 0
static sal_uLong nItemCount = 0;
-const char* pw1 = "Wow! 10.000 items!";
-const char* pw2 = "Wow! 100.000 items!";
-const char* pw3 = "Wow! 1.000.000 items!";
-const char* pw4 = "Wow! 50.000.000 items!";
-const char* pw5 = "Wow! 10.000.000 items!";
+static const char* pw1 = "Wow! 10.000 items!";
+static const char* pw2 = "Wow! 100.000 items!";
+static const char* pw3 = "Wow! 1.000.000 items!";
+static const char* pw4 = "Wow! 50.000.000 items!";
+static const char* pw5 = "Wow! 10.000.000 items!";
#endif
SfxPoolItem::SfxPoolItem(sal_uInt16 const nWhich)
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index f979c1bdbe7a..e169c4521dec 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -54,9 +54,9 @@ public:
sal_uInt32 mnStyles;
sal_uInt32 mnPools;
-}
-aDbgStyleSheetReferences;
+};
+static DbgStyleSheetReferences aDbgStyleSheetReferences;
#endif