summaryrefslogtreecommitdiff
path: root/include/sot
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-07 10:52:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-07 11:05:07 +0200
commit9b1b3c9fdd6022fd8547af19cce62ce18ed6e383 (patch)
treecff3a503414c4898dd1956f0ad81fad8e8920fdf /include/sot
parent79d853e31826c9e8b7e86bf90e5c1f9b7dd0c43a (diff)
Reduce enum class StorageMode to bool transacted
Change-Id: I04e53d7de9f2f26e9338a82f7d5ae5dab1682712
Diffstat (limited to 'include/sot')
-rw-r--r--include/sot/storage.hxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index a97fa80550c7..8c31ee209acc 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -25,7 +25,6 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/embed/XStorage.hpp>
-#include <o3tl/typed_flags_set.hxx>
#include <sot/object.hxx>
#include <sot/factory.hxx>
#include <tools/stream.hxx>
@@ -33,18 +32,6 @@
#include <sot/storinfo.hxx>
#include <sot/sotdllapi.h>
-enum class StorageMode {
- Default = 0,
- Transacted = 0x04
-};
-
-namespace o3tl {
-
-template<> struct typed_flags<StorageMode>: is_typed_flags<StorageMode, 0x04>
-{};
-
-}
-
class SotStorage;
enum class SotClipboardFormatId : sal_uLong;
@@ -111,7 +98,7 @@ friend class SotStorage;
protected:
virtual ~SotStorage();
- void CreateStorage( bool bUCBStorage, StreamMode, StorageMode );
+ void CreateStorage( bool bUCBStorage, StreamMode, bool transacted );
public:
SotStorage( const OUString &,
StreamMode = STREAM_STD_READWRITE,