summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-12-18 12:05:08 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-12-18 13:15:33 +0100
commit6e37b340874e7f8db0d346a4755b5fc30f2a08d6 (patch)
treed7119a40f6d788617edd690dc80a378d096b4fba /embedserv
parentce827c541dfa8c11b51224a52d4809cf27e08a8b (diff)
Move ULONGGuard where it's used
Change-Id: I2b440da8cb9b8cc48904f94af0e7468f620dfb21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127047 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/inprocserv/inprocembobj.cxx19
-rw-r--r--embedserv/source/inprocserv/smartpointer.hxx19
2 files changed, 19 insertions, 19 deletions
diff --git a/embedserv/source/inprocserv/inprocembobj.cxx b/embedserv/source/inprocserv/inprocembobj.cxx
index ea8562f0703d..cf7fd4a61a6f 100644
--- a/embedserv/source/inprocserv/inprocembobj.cxx
+++ b/embedserv/source/inprocserv/inprocembobj.cxx
@@ -27,6 +27,25 @@ namespace inprocserv
namespace {
+class ULONGGuard
+{
+ ULONG* m_pValue;
+
+public:
+ explicit ULONGGuard( ULONG* pValue )
+ : m_pValue( pValue )
+ {
+ if ( m_pValue )
+ (*m_pValue)++;
+ }
+
+ ~ULONGGuard()
+ {
+ if ( m_pValue )
+ (*m_pValue)--;
+ }
+};
+
void SetName( LPCOLESTR pszNameFromOutside, wchar_t*& pOwnName )
{
if ( !pszNameFromOutside )
diff --git a/embedserv/source/inprocserv/smartpointer.hxx b/embedserv/source/inprocserv/smartpointer.hxx
index c79bf2f64dda..33c7d43b7905 100644
--- a/embedserv/source/inprocserv/smartpointer.hxx
+++ b/embedserv/source/inprocserv/smartpointer.hxx
@@ -156,25 +156,6 @@ public:
}
};
-class ULONGGuard
-{
- ULONG* m_pValue;
-
-public:
- explicit ULONGGuard( ULONG* pValue )
- : m_pValue( pValue )
- {
- if ( m_pValue )
- (*m_pValue)++;
- }
-
- ~ULONGGuard()
- {
- if ( m_pValue )
- (*m_pValue)--;
- }
-};
-
} // namespace inprocserv
#endif