diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/profile.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/condition/osl_Condition.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 4 | ||||
-rw-r--r-- | sal/rtl/ustring.cxx | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx index 44e7243c4b13..ad8868b5490c 100644 --- a/sal/osl/unx/profile.cxx +++ b/sal/osl/unx/profile.cxx @@ -51,11 +51,15 @@ typedef time_t osl_TStamp; +namespace { + enum osl_TLockMode { un_lock, read_lock, write_lock }; +} + struct osl_TFile { int m_Handle; diff --git a/sal/qa/osl/condition/osl_Condition.cxx b/sal/qa/osl/condition/osl_Condition.cxx index e2c50fb309e6..0d3cba799583 100644 --- a/sal/qa/osl/condition/osl_Condition.cxx +++ b/sal/qa/osl/condition/osl_Condition.cxx @@ -22,6 +22,8 @@ using namespace osl; +namespace { + enum ConditionType { thread_type_set, @@ -29,6 +31,8 @@ enum ConditionType thread_type_wait }; +} + /** thread for testing Condition. */ class ConditionThread : public Thread diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 6b17d07098c6..54c0e01b90ff 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -277,6 +277,8 @@ static void deleteTestDirectory(const OUString& basename, const OUString& dirnam deleteTestDirectory(aBaseURL); } +namespace { + /** Check for the file and directory access right. */ enum class oslCheckMode { @@ -285,6 +287,8 @@ enum class oslCheckMode { WriteAccess }; +} + /** check if the file exist */ static bool ifFileExist(const OUString & str) diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx index dafccb4d7d28..f60fdc95aefc 100644 --- a/sal/rtl/ustring.cxx +++ b/sal/rtl/ustring.cxx @@ -890,11 +890,15 @@ void SAL_CALL rtl_string2UString( rtl_uString** ppThis, /* ----------------------------------------------------------------------- */ +namespace { + enum StrLifecycle { CANNOT_RETURN, CAN_RETURN = 1 }; +} + static oslMutex getInternMutex() { |