diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-07-31 08:00:39 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-03 12:17:17 +0200 |
commit | 2d275be83f905f88c8c4ec982165af9102e3a920 (patch) | |
tree | e2a77d99bed94ed4b0a1351d160b13f6d2d210fc /sw | |
parent | 0e5634e73036767887fb64bf3de7eb0908e98a09 (diff) |
Reduce scope of global constants
Change-Id: I938c56d5d1200ada439df2a25b0d46eddf9c3a7f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/crossrefbookmark.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/source/core/crsr/crossrefbookmark.cxx b/sw/source/core/crsr/crossrefbookmark.cxx index 1cc7aea1abfd..32442ff05d0b 100644 --- a/sw/source/core/crsr/crossrefbookmark.cxx +++ b/sw/source/core/crsr/crossrefbookmark.cxx @@ -21,6 +21,14 @@ #include <crossrefbookmark.hxx> #include <ndtxt.hxx> +namespace +{ + +const char CrossRefHeadingBookmark_NamePrefix[] = "__RefHeading__"; +const char CrossRefNumItemBookmark_NamePrefix[] = "__RefNumPara__"; + +} + namespace sw { namespace mark { CrossRefBookmark::CrossRefBookmark(const SwPaM& rPaM, @@ -60,8 +68,6 @@ namespace sw { namespace mark return *static_cast<SwPosition*>(NULL); } - const char CrossRefHeadingBookmark_NamePrefix[] = "__RefHeading__"; - CrossRefHeadingBookmark::CrossRefHeadingBookmark(const SwPaM& rPaM, const KeyCode& rCode, const OUString& rName, @@ -74,8 +80,6 @@ namespace sw { namespace mark return rName.match(CrossRefHeadingBookmark_NamePrefix); } - const char CrossRefNumItemBookmark_NamePrefix[] = "__RefNumPara__"; - CrossRefNumItemBookmark::CrossRefNumItemBookmark(const SwPaM& rPaM, const KeyCode& rCode, const OUString& rName, |