summaryrefslogtreecommitdiff
path: root/sal/osl/w32
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-26 14:40:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-26 17:43:53 +0100
commit0675ee723d45e8074d2e2188983a9c19866a9078 (patch)
treee3115a7b5eb9433cee32f4d9075adb7ebb9147c6 /sal/osl/w32
parentfc2d2e0d83620cb2779d22694ab45189acf7afd8 (diff)
loplugin:external (clang-cl)
Change-Id: Iab2231e90e55c7e583a2fafd08469ee01b02ce82 Reviewed-on: https://gerrit.libreoffice.org/83767 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl/w32')
-rw-r--r--sal/osl/w32/file_dirvol.cxx4
-rw-r--r--sal/osl/w32/profile.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 2c6ecbd34a28..773b18679f01 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -959,6 +959,8 @@ oslFileError SAL_CALL osl_closeDirectory(oslDirectory Directory)
return eError;
}
+namespace {
+
/* Different types of paths */
enum PATHTYPE
{
@@ -969,6 +971,8 @@ enum PATHTYPE
PATHTYPE_FILE
};
+}
+
oslFileError SAL_CALL osl_getDirectoryItem(rtl_uString *strFilePath, oslDirectoryItem *pItem)
{
oslFileError error = osl_File_E_None;
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 0c1da6527fd2..e35f48c2dfee 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -74,11 +74,15 @@ static void copy_ustr_n( void *dest, const void *source, size_t length ) { memcp
typedef FILETIME osl_TStamp;
+namespace {
+
enum osl_TLockMode
{
un_lock, read_lock, write_lock
};
+}
+
struct osl_TFile
{
HANDLE m_Handle;