summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 15:28:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 15:28:57 +0200
commita86df4bbe0e4f3f3d20f3e33da77911019ad6350 (patch)
treedbe5bcdc0021027d0a3864c5d3db33d5e7ebfec8 /sd
parent7a63e5f69add05afcfe2fb14f1c46dab54de66b1 (diff)
loplugin:stringconstant: adapt to improved OUStringLiteral1 (sd)
Change-Id: Ib044294174c665407dd2c1e8fd083e9f34733ec6
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc4.cxx4
-rw-r--r--sd/source/core/stlsheet.cxx2
-rw-r--r--sd/source/filter/eppt/eppt.cxx2
-rw-r--r--sd/source/filter/eppt/pptx-epptbase.cxx2
-rw-r--r--sd/source/ui/annotations/annotationtag.cxx2
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 046bb138a4b3..59a8167e2151 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -1039,10 +1039,10 @@ OUString SdDrawDocument::CreatePageNumValue(sal_uInt16 nNum) const
switch (mePageNumType)
{
case SVX_CHARS_UPPER_LETTER:
- aPageNumValue += OUString( (sal_Unicode)(char)((nNum - 1) % 26 + 'A') );
+ aPageNumValue += OUStringLiteral1( (nNum - 1) % 26 + 'A' );
break;
case SVX_CHARS_LOWER_LETTER:
- aPageNumValue += OUString( (sal_Unicode)(char)((nNum - 1) % 26 + 'a') );
+ aPageNumValue += OUStringLiteral1( (nNum - 1) % 26 + 'a' );
break;
case SVX_ROMAN_UPPER:
bUpper = true;
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 2550a68f15e6..2ddbdb199f31 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -624,7 +624,7 @@ void SdStyleSheet::SetHelpId( const OUString& r, sal_uLong nId )
if( (nId >= HID_PSEUDOSHEET_OUTLINE1) && ( nId <= HID_PSEUDOSHEET_OUTLINE9 ) )
{
msApiName = "outline";
- msApiName += OUString( (sal_Unicode)( '1' + (nId - HID_PSEUDOSHEET_OUTLINE1) ) );
+ msApiName += OUStringLiteral1( '1' + (nId - HID_PSEUDOSHEET_OUTLINE1) );
}
else
{
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index a7e6353c3fd1..380e0bc3afbc 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -1050,7 +1050,7 @@ static OUString getInitials( const OUString& rName )
// take letter
if( nLength )
{
- sInitials += OUString( *pStr );
+ sInitials += OUStringLiteral1( *pStr );
nLength--; pStr++;
}
diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx
index 48ad287083c3..350337653598 100644
--- a/sd/source/filter/eppt/pptx-epptbase.cxx
+++ b/sd/source/filter/eppt/pptx-epptbase.cxx
@@ -601,7 +601,7 @@ bool PPTWriterBase::GetStyleSheets()
if ( nInstance == EPP_TEXTTYPE_Body )
{
sal_Unicode cTemp = aStyle[aStyle.getLength() - 1];
- aStyle = aStyle.copy(0, aStyle.getLength() - 1) + OUString(++cTemp);
+ aStyle = aStyle.copy(0, aStyle.getLength() - 1) + OUStringLiteral1(++cTemp);
if ( aXFamily->hasByName( aStyle ) )
{
aXFamily->getByName( aStyle ) >>= xStyle;
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx
index 8fcd3dae0b67..c90bfc244ca1 100644
--- a/sd/source/ui/annotations/annotationtag.cxx
+++ b/sd/source/ui/annotations/annotationtag.cxx
@@ -76,7 +76,7 @@ static OUString getInitials( const OUString& rName )
// take letter
if( nLength )
{
- sInitials += OUString( *pStr );
+ sInitials += OUStringLiteral1( *pStr );
nLength--; pStr++;
}
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 73a42555932a..c9f0adb6cc93 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1835,7 +1835,7 @@ bool SlideshowImpl::keyInput(const KeyEvent& rKEvt)
case KEY_7:
case KEY_8:
case KEY_9:
- maCharBuffer += OUString( rKEvt.GetCharCode() );
+ maCharBuffer += OUStringLiteral1( rKEvt.GetCharCode() );
break;
case KEY_PAGEUP: