From 7f305223fa6d6a1ad4a6f906b14f879cb01539be Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 2 Nov 2019 19:52:33 +0100 Subject: New loplugin:conditionalstring Change-Id: I2eab990c15f845b44a3b598571aca361dadf9ff3 Reviewed-on: https://gerrit.libreoffice.org/81946 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sdext/source/pdfimport/tree/drawtreevisiting.cxx | 2 +- sdext/source/pdfimport/tree/writertreevisiting.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index f4376d41af25..e5037c60944f 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -1035,7 +1035,7 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< std::unique_pt aPageLayoutProps[ "fo:margin-right" ] = unitMMString( right_margin ); aPageLayoutProps[ "fo:page-width" ] = unitMMString( page_width ); aPageLayoutProps[ "fo:page-height" ] = unitMMString( page_height ); - aPageLayoutProps[ "style:print-orientation" ]= elem.w < elem.h ? OUString("portrait") : OUString("landscape"); + aPageLayoutProps[ "style:print-orientation" ]= elem.w < elem.h ? OUStringLiteral("portrait") : OUStringLiteral("landscape"); aPageLayoutProps[ "style:writing-mode" ]= "lr-tb"; StyleContainer::Style aStyle( "style:page-layout", aPageProps); diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx index 00cbad2ac47c..b6396885704f 100644 --- a/sdext/source/pdfimport/tree/writertreevisiting.cxx +++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx @@ -126,7 +126,7 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem, if (pParaElt) { rProps[ "text:anchor-type" ] = rElem.isCharacter - ? OUString("character") : OUString("paragraph"); + ? OUStringLiteral("character") : OUStringLiteral("paragraph"); } else { @@ -1160,7 +1160,7 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< std::unique_ aPageLayoutProps[ "fo:page-width" ] = unitMMString( page_width ); aPageLayoutProps[ "fo:page-height" ] = unitMMString( page_height ); aPageLayoutProps[ "style:print-orientation" ] - = elem.w < elem.h ? OUString("portrait") : OUString("landscape"); + = elem.w < elem.h ? OUStringLiteral("portrait") : OUStringLiteral("landscape"); aPageLayoutProps[ "fo:margin-top" ] = unitMMString( top_margin ); aPageLayoutProps[ "fo:margin-bottom" ] = unitMMString( bottom_margin ); aPageLayoutProps[ "fo:margin-left" ] = unitMMString( left_margin ); -- cgit