summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-10-19 12:22:42 +0200
committerJan Holesovsky <kendy@collabora.com>2015-10-19 12:22:42 +0200
commitc2e729954926e30b4d4c61a64a8f804c2c365d7b (patch)
tree26498b25d66a30dab2c89a231eecb163c6526825
parent9f221c152add6a05810c76f7c8c223aa4c9ebd56 (diff)
Fix build.
-rw-r--r--filter/source/svg/svgwriter.cxx3
-rw-r--r--svx/source/core/graphichelper.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 849298ff443f..9de7a66ff4cc 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -3937,7 +3937,8 @@ void SAL_CALL SVGWriter::write( const Reference<XDocumentHandler>& rxDocHandler,
const Reference< XDocumentHandler > xDocumentHandler( rxDocHandler );
const Sequence< PropertyValue > aFilterData;
- SVGExport* pWriter = new SVGExport( mxContext, xDocumentHandler, aFilterData );
+ Reference<XMultiServiceFactory> xFactory(mxContext->getServiceManager(), UNO_QUERY);
+ SVGExport* pWriter = new SVGExport(xFactory, xDocumentHandler, aFilterData);
pWriter->writeMtf( aMtf );
delete pWriter;
}
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index 4671c912963a..d0c4558ecaad 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -133,7 +133,7 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString&
// "wrong" extension?
GetPreferedExtension( aExtension, rGraphic );
for ( sal_uInt16 i = 0; i < nCount; ++i )
- if ( aExtension == rGraphicFilter.GetExportFormatShortName( i ).ToLowerAscii() )
+ if (aExtension == OUString(rGraphicFilter.GetExportFormatShortName(i).ToLowerAscii()))
{
nDefaultFilter = i;
break;