diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-01-15 18:18:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-16 11:39:03 +0100 |
commit | fb8f3fac70ecfcc2b8612dbf71308cbea39ca789 (patch) | |
tree | bd40d8a8c01caabfefdbf3a2ae1838f03d044fb6 | |
parent | 9e2972dbf1a9526f30ffd3e001a6eaf473d76ae9 (diff) |
get_this_libpath only used in paths.cxx
Change-Id: I60bbb6fce36d20d476adc963ad2182f71e9c19c7
-rw-r--r-- | cppuhelper/source/paths.cxx | 6 | ||||
-rw-r--r-- | cppuhelper/source/paths.hxx | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx index c5ce22bdbe3b..5f60ab806028 100644 --- a/cppuhelper/source/paths.cxx +++ b/cppuhelper/source/paths.cxx @@ -32,7 +32,9 @@ #include "paths.hxx" -rtl::OUString cppu::get_this_libpath() { +namespace { + +rtl::OUString get_this_libpath() { static rtl::OUString s_uri; if (s_uri.isEmpty()) { rtl::OUString uri; @@ -53,6 +55,8 @@ rtl::OUString cppu::get_this_libpath() { return s_uri; } +} + rtl::OUString cppu::getUnoIniUri() { #if defined ANDROID // Wouldn't it be lovely to avoid this fugly hard-coding. diff --git a/cppuhelper/source/paths.hxx b/cppuhelper/source/paths.hxx index bba083346b5e..37772d5a3f0c 100644 --- a/cppuhelper/source/paths.hxx +++ b/cppuhelper/source/paths.hxx @@ -27,8 +27,6 @@ namespace rtl { class OUString; } namespace cppu { -rtl::OUString get_this_libpath(); - rtl::OUString getUnoIniUri(); bool nextDirectoryItem(osl::Directory & directory, rtl::OUString * url); |