summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-07-23 12:06:10 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-07-23 13:19:14 +1000
commit6128d6277142c703ec9c938c22f395de6b66f3f7 (patch)
tree9b0145acf009444ff1f61ff4fbd91e4fe9727219 /sal
parent16204ebb6862e3ada703001c048089ca931060d1 (diff)
rtl: cleanup rtl_process.cxx
Change-Id: I8640da0d5f44d69b9b628ac2076aec50b8e62ceb
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/rtl_process.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/sal/rtl/rtl_process.cxx b/sal/rtl/rtl_process.cxx
index a391dc8e7453..4904ff224a7b 100644
--- a/sal/rtl/rtl_process.cxx
+++ b/sal/rtl/rtl_process.cxx
@@ -26,9 +26,11 @@
#include "rtl/uuid.h"
#include "sal/types.h"
-namespace {
+namespace
+{
-class Id {
+class Id
+{
public:
Id() { rtl_createUuid(uuid_, nullptr, false); }
@@ -36,7 +38,7 @@ public:
Id& operator=(const Id&) = delete;
void copy(sal_uInt8 * target) const
- { std::memcpy(target, uuid_, UUID_SIZE); }
+ { std::memcpy(target, uuid_, UUID_SIZE); }
private:
enum { UUID_SIZE = 16 };
@@ -46,9 +48,10 @@ private:
struct theId: public rtl::Static< Id, theId > {};
-}
+} // end namespace
-void rtl_getGlobalProcessId(sal_uInt8 * pTargetUUID) {
+void rtl_getGlobalProcessId(sal_uInt8 * pTargetUUID)
+{
theId::get().copy(pTargetUUID);
}