summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-13 09:34:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-13 10:50:19 +0100
commit58281dda29a6267736893ae83b66213e6a4fa1ba (patch)
treecded163ae1e362b743cf0e6f3284636b9dc265d8 /sfx2
parent8bd15459527b527454900dd781f1226dade5b118 (diff)
SystemPath does not need to be a class
Change-Id: I02adb188ae75bd721d8e80cf0df11fde40a11d9b Reviewed-on: https://gerrit.libreoffice.org/82566 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/syspath.cxx5
-rw-r--r--sfx2/source/doc/syspath.hxx5
2 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/doc/syspath.cxx b/sfx2/source/doc/syspath.cxx
index 23885aade2e6..a9c691dd0d10 100644
--- a/sfx2/source/doc/syspath.cxx
+++ b/sfx2/source/doc/syspath.cxx
@@ -20,7 +20,9 @@
#include "syspath.hxx"
#include "syspathw32.hxx"
-bool SystemPath::GetUserTemplateLocation( sal_Unicode* pFolder, int nSize )
+namespace SystemPath
+{
+bool GetUserTemplateLocation( sal_Unicode* pFolder, int nSize )
{
#ifdef _WIN32
return ::GetUserTemplateLocation( pFolder, nSize );
@@ -30,5 +32,6 @@ bool SystemPath::GetUserTemplateLocation( sal_Unicode* pFolder, int nSize )
return false;
#endif
}
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/doc/syspath.hxx b/sfx2/source/doc/syspath.hxx
index c5b1ab3039b3..d355a3e824c9 100644
--- a/sfx2/source/doc/syspath.hxx
+++ b/sfx2/source/doc/syspath.hxx
@@ -22,10 +22,9 @@
#include <sfx2/dllapi.h>
-class SystemPath
+namespace SystemPath
{
-public:
- static bool GetUserTemplateLocation(sal_Unicode*, int nSize);
+ bool GetUserTemplateLocation(sal_Unicode*, int nSize);
};
#endif