diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:55:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:56 +0200 |
commit | afacb9850bde58918ba6a5305320e90124454154 (patch) | |
tree | afbcac0bba4fd3c04ee7b819f08e3e869a0d7996 /sd | |
parent | 867882bcb2bcea0b9d207c3214d32335b10d409e (diff) |
loplugin:salunicodeliteral: sd
Change-Id: Ide4c05a1c025b4c093daababa499f46f360710c3
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/export-tests-ooxml1.cxx | 2 | ||||
-rw-r--r-- | sd/qa/unit/tiledrendering/tiledrendering.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/fubullet.cxx | 14 |
5 files changed, 11 insertions, 11 deletions
diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx index e7a29c25f6c4..ab59ffe226b1 100644 --- a/sd/qa/unit/export-tests-ooxml1.cxx +++ b/sd/qa/unit/export-tests-ooxml1.cxx @@ -623,7 +623,7 @@ void SdOOXMLExportTest1::testBulletCharAndFont() uno::Reference<container::XIndexAccess> xLevels(xPropSet->getPropertyValue("NumberingRules"), uno::UNO_QUERY); uno::Sequence<beans::PropertyValue> aProps; xLevels->getByIndex(0) >>= aProps; // 1st level - OUString sBulletChar(sal_Unicode(0xf06c)); + OUString sBulletChar(u'\xf06c'); for (int i = 0; i < aProps.getLength(); ++i) { const beans::PropertyValue& rProp = aProps[i]; diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx index 5804fdf34bd4..d1aeb4b4360a 100644 --- a/sd/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx @@ -241,7 +241,7 @@ void SdTiledRenderingTest::callbackImpl(int nType, const char* pPayload) { OUString aPayload = OUString::createFromAscii(pPayload); m_aSelection.clear(); - for (const OUString& rString : lcl_convertSeparated(aPayload, static_cast<sal_Unicode>(';'))) + for (const OUString& rString : lcl_convertSeparated(aPayload, u';')) { ::tools::Rectangle aRectangle; lcl_convertRectangle(rString, aRectangle); diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index 3c1f76523a72..f25e482895d7 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -1983,7 +1983,7 @@ void AnimationImporter::importCommandContainer( const Atom* pAtom, const Referen { const OUString aMediaTime( aParam.copy( 9, aParam.getLength() - 10 ) ); rtl_math_ConversionStatus eStatus; - double fMediaTime = ::rtl::math::stringToDouble( aMediaTime, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus ); + double fMediaTime = ::rtl::math::stringToDouble( aMediaTime, u'.', u',', &eStatus ); if( eStatus == rtl_math_ConversionStatus_Ok ) { aParamValue.Name = "MediaTime"; diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 791ebf251670..564963f923af 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -616,7 +616,7 @@ RotationPropertyBox::RotationPropertyBox( sal_Int32 nControlType, vcl::Window* p { mpMetric.set( VclPtr<MetricField>::Create( pParent ,WB_TABSTOP|WB_IGNORETAB| WB_NOBORDER) ); mpMetric->SetUnit( FUNIT_CUSTOM ); - mpMetric->SetCustomUnitText( OUString( sal_Unicode(0xb0)) ); // degree sign + mpMetric->SetCustomUnitText( OUString( u'\x00b0') ); // degree sign mpMetric->SetMin( -10000 ); mpMetric->SetMax( 10000 ); diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx index b0c24ddc925b..52a104404797 100644 --- a/sd/source/ui/func/fubullet.cxx +++ b/sd/source/ui/func/fubullet.cxx @@ -45,13 +45,13 @@ namespace sd { -const sal_Unicode CHAR_HARDBLANK = ((sal_Unicode)0x00A0); -const sal_Unicode CHAR_HARDHYPHEN = ((sal_Unicode)0x2011); -const sal_Unicode CHAR_SOFTHYPHEN = ((sal_Unicode)0x00AD); -const sal_Unicode CHAR_RLM = ((sal_Unicode)0x200F); -const sal_Unicode CHAR_LRM = ((sal_Unicode)0x200E); -const sal_Unicode CHAR_ZWSP = ((sal_Unicode)0x200B); -const sal_Unicode CHAR_ZWNBSP = ((sal_Unicode)0x2060); +const sal_Unicode CHAR_HARDBLANK = u'\x00A0'; +const sal_Unicode CHAR_HARDHYPHEN = u'\x2011'; +const sal_Unicode CHAR_SOFTHYPHEN = u'\x00AD'; +const sal_Unicode CHAR_RLM = u'\x200F'; +const sal_Unicode CHAR_LRM = u'\x200E'; +const sal_Unicode CHAR_ZWSP = u'\x200B'; +const sal_Unicode CHAR_ZWNBSP = u'\x2060'; FuBullet::FuBullet ( |