[Libreoffice-commits] core.git: sfx2/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 13 09:51:09 UTC 2019
sfx2/source/doc/syspath.cxx | 5 ++++-
sfx2/source/doc/syspath.hxx | 5 ++---
2 files changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 58281dda29a6267736893ae83b66213e6a4fa1ba
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Nov 13 09:34:45 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Nov 13 10:50:19 2019 +0100
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 at collabora.co.uk>
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
More information about the Libreoffice-commits
mailing list