summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/container/enumerablemap.cxx2
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx5
2 files changed, 7 insertions, 0 deletions
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index f003fe0e02ee..bee5d03963b2 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -194,12 +194,14 @@ namespace comphelper
MapData m_aData;
};
+ namespace {
enum EnumerationType
{
eKeys, eValues, eBoth
};
+ }
class MapEnumerator final
{
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index b3f62a70365b..60ecc7b97c94 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -26,6 +26,8 @@
#include <comphelper/syntaxhighlight.hxx>
#include <o3tl/typed_flags_set.hxx>
+namespace {
+
// Flags for character properties
enum class CharFlags {
StartIdentifier = 0x0001,
@@ -39,6 +41,9 @@ enum class CharFlags {
Space = 0x0100,
EOL = 0x0200
};
+
+}
+
namespace o3tl {
template<> struct typed_flags<CharFlags> : is_typed_flags<CharFlags, 0x03ff> {};
}