[Libreoffice-commits] core.git: xmloff/source

Stephan Bergmann sbergman at redhat.com
Sat Dec 17 19:31:22 UTC 2016


 xmloff/source/core/XMLEmbeddedObjectImportContext.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0b211d6ec65c96933031d948ab39a762322a89ad
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sat Dec 17 20:29:38 2016 +0100

    More blind fix attempt for MSVC
    
    Change-Id: Ic1c8fe2994d8094581b7c22a50edb6267122b8ea

diff --git a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
index a55e328..2c3da98 100644
--- a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
+++ b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
@@ -183,7 +183,10 @@ XMLEmbeddedObjectImportContext::XMLEmbeddedObjectImportContext(
         if( !sClass.isEmpty() )
         {
             struct Entry {
-                XMLTokenEnum eClass; OUStringLiteral sFilterService; };
+                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) },


More information about the Libreoffice-commits mailing list