diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-17 01:13:27 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-17 05:15:22 +0200 |
commit | fe3b29126ee5aa054424dc8c3dcc2e4c64398984 (patch) | |
tree | 9cfc264edcb8704b076fa7c4c06d8fca3c8c75ee /include | |
parent | 6c54831d071c8386fddd3e6f5e131c71a06d0a1e (diff) |
warning C4800: 'unsigned long' : forcing value to bool 'true' or 'false'
Change-Id: Iea71e791a760b38448a89294ab4136f815b8932c
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/docfilt.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/sfx2/docfilt.hxx b/include/sfx2/docfilt.hxx index f4fb63e62fa2..34d7130d5981 100644 --- a/include/sfx2/docfilt.hxx +++ b/include/sfx2/docfilt.hxx @@ -77,13 +77,13 @@ public: const OUString& rServiceName ); ~SfxFilter(); - bool IsAllowedAsTemplate() const { return nFormatType & SFX_FILTER_TEMPLATE; } - bool IsOwnFormat() const { return nFormatType & SFX_FILTER_OWN; } - bool IsOwnTemplateFormat() const { return nFormatType & SFX_FILTER_TEMPLATEPATH; } - bool IsAlienFormat() const { return nFormatType & SFX_FILTER_ALIEN; } - bool CanImport() const { return nFormatType & SFX_FILTER_IMPORT; } - bool CanExport() const { return nFormatType & SFX_FILTER_EXPORT; } - bool IsInternal() const { return nFormatType & SFX_FILTER_INTERNAL; } + bool IsAllowedAsTemplate() const { return (nFormatType & SFX_FILTER_TEMPLATE) != 0; } + bool IsOwnFormat() const { return (nFormatType & SFX_FILTER_OWN) != 0; } + bool IsOwnTemplateFormat() const { return (nFormatType & SFX_FILTER_TEMPLATEPATH) != 0; } + bool IsAlienFormat() const { return (nFormatType & SFX_FILTER_ALIEN) != 0; } + bool CanImport() const { return (nFormatType & SFX_FILTER_IMPORT) != 0; } + bool CanExport() const { return (nFormatType & SFX_FILTER_EXPORT) != 0; } + bool IsInternal() const { return (nFormatType & SFX_FILTER_INTERNAL) != 0; } SfxFilterFlags GetFilterFlags() const { return nFormatType; } const OUString& GetFilterName() const { return maFilterName; } const OUString& GetMimeType() const { return aMimeType; } |