diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-17 20:42:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-17 20:42:11 +0100 |
commit | 66b476647f937afafe55354fccd0f5d859e8cd0b (patch) | |
tree | 4e8396d8d7009632ea360499a35968e9daf1e4cd /xmloff | |
parent | 0b211d6ec65c96933031d948ab39a762322a89ad (diff) |
More blind fix attempt for MSVC
"warning C4822: 'XMLEmbeddedObjectImportContext::{ctor}::Entry::Entry' : local
class member function does not have a body"
Change-Id: Ieeb11aaf3f204532a77ce80d47e0e6996697003c
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/XMLEmbeddedObjectImportContext.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx index 2c3da9811fa8..afe67ade0f94 100644 --- a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx +++ b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx @@ -134,6 +134,16 @@ void XMLEmbeddedObjectImportContext::SetComponent( xComp = rComp; // keep ref to component only if there is a handler } +namespace { + +struct Entry { + XMLTokenEnum eClass; + OUStringLiteral sFilterService; + Entry() = delete; // avoid MSVC warning C4510 +}; + +} + XMLEmbeddedObjectImportContext::XMLEmbeddedObjectImportContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName, const Reference< XAttributeList >& xAttrList ) : @@ -182,11 +192,6 @@ XMLEmbeddedObjectImportContext::XMLEmbeddedObjectImportContext( if( !sClass.isEmpty() ) { - struct Entry { - XMLTokenEnum eClass; - OUStringLiteral sFilterService; - Entry() = delete; // avoid MSVC warning C4510 - }; static Entry const aServiceMap[] = { { XML_TEXT, OUStringLiteral(XML_IMPORT_FILTER_WRITER) }, { XML_ONLINE_TEXT, OUStringLiteral(XML_IMPORT_FILTER_WRITER) }, |