summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/combobox.cxx4
-rw-r--r--vcl/source/control/tabctrl.cxx2
-rw-r--r--vcl/source/edit/textdoc.cxx4
-rw-r--r--vcl/source/filter/FilterConfigCache.cxx6
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
-rw-r--r--vcl/source/image/ImplImage.cxx2
-rw-r--r--vcl/source/outdev/text.cxx6
-rw-r--r--vcl/source/treelist/transfer.cxx2
-rw-r--r--vcl/source/window/mnemonic.cxx8
9 files changed, 18 insertions, 18 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index de3de3d6e1f7..1f728ce03ab4 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -376,7 +376,7 @@ IMPL_LINK_NOARG(ComboBox::Impl, ImplSelectHdl, LinkParamNone*, void)
sal_Int32 nP = m_pImplLB->GetEntryList().FindEntry( aToken );
if ((nP != LISTBOX_ENTRY_NOTFOUND) && (!m_pImplLB->GetEntryList().IsEntryPosSelected(nP)))
{
- aText = aText.replaceAt( nPrevIndex, nTokenLen, "" );
+ aText = aText.replaceAt( nPrevIndex, nTokenLen, u"" );
nIndex = nIndex - nTokenLen;
sal_Int32 nSepCount=0;
if ((nPrevIndex+nSepCount < aText.getLength()) && (aText[nPrevIndex+nSepCount] == m_cMultiSep))
@@ -384,7 +384,7 @@ IMPL_LINK_NOARG(ComboBox::Impl, ImplSelectHdl, LinkParamNone*, void)
nIndex--;
++nSepCount;
}
- aText = aText.replaceAt( nPrevIndex, nSepCount, "" );
+ aText = aText.replaceAt( nPrevIndex, nSepCount, u"" );
}
aText = comphelper::string::strip(aText, ' ');
}
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index a3e2264d3f8c..9e39516887c4 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -264,7 +264,7 @@ Size TabControl::ImplGetItemSize( ImplTabItem* pItem, tools::Long nMaxWidth )
do
{
if (pItem->maFormatText.getLength() > aAppendStr.getLength())
- pItem->maFormatText = pItem->maFormatText.replaceAt( pItem->maFormatText.getLength()-aAppendStr.getLength()-1, 1, "" );
+ pItem->maFormatText = pItem->maFormatText.replaceAt( pItem->maFormatText.getLength()-aAppendStr.getLength()-1, 1, u"" );
aSize.setWidth( GetOutDev()->GetCtrlTextWidth( pItem->maFormatText ) );
aSize.AdjustWidth(aImageSize.Width() );
aSize.AdjustWidth(TAB_TABOFFSET_X*2 );
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx
index 2be8c372c273..9e0c80b96815 100644
--- a/vcl/source/edit/textdoc.cxx
+++ b/vcl/source/edit/textdoc.cxx
@@ -271,13 +271,13 @@ void TextNode::InsertText( sal_Int32 nPos, const OUString& rText )
void TextNode::InsertText( sal_Int32 nPos, sal_Unicode c )
{
- maText = maText.replaceAt( nPos, 0, OUString(c) );
+ maText = maText.replaceAt( nPos, 0, rtl::OUStringChar(c) );
ExpandAttribs( nPos, 1 );
}
void TextNode::RemoveText( sal_Int32 nPos, sal_Int32 nChars )
{
- maText = maText.replaceAt( nPos, nChars, "" );
+ maText = maText.replaceAt( nPos, nChars, u"" );
CollapseAttribs( nPos, nChars );
}
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx
index 64e4e6929dea..a314a6ca1660 100644
--- a/vcl/source/filter/FilterConfigCache.cxx
+++ b/vcl/source/filter/FilterConfigCache.cxx
@@ -69,7 +69,7 @@ OUString FilterConfigCache::FilterConfigCacheEntry::GetShortName()
{
aShortName = lExtensionList[ 0 ];
if ( aShortName.startsWith( "*." ) )
- aShortName = aShortName.replaceAt( 0, 2, "" );
+ aShortName = aShortName.replaceAt( 0, 2, u"" );
}
return aShortName;
}
@@ -375,7 +375,7 @@ OUString FilterConfigCache::GetImportWildcard(sal_uInt16 nFormat, sal_Int32 nEnt
{
OUString aWildcard( GetImportFormatExtension( nFormat, nEntry ) );
if ( !aWildcard.isEmpty() )
- aWildcard = aWildcard.replaceAt( 0, 0, "*." );
+ aWildcard = aWildcard.replaceAt( 0, 0, u"*." );
return aWildcard;
}
@@ -473,7 +473,7 @@ OUString FilterConfigCache::GetExportWildcard( sal_uInt16 nFormat, sal_Int32 nEn
{
OUString aWildcard( GetExportFormatExtension( nFormat, nEntry ) );
if ( !aWildcard.isEmpty() )
- aWildcard = aWildcard.replaceAt( 0, 0, "*." );
+ aWildcard = aWildcard.replaceAt( 0, 0, u"*." );
return aWildcard;
}
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 48dda1916a0f..3db1ca90f235 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -7054,7 +7054,7 @@ void PDFWriterImpl::drawStrikeoutChar( const Point& rPos, tools::Long nWidth, Fo
// do not get broader than nWidth modulo 1 character
while( GetTextWidth( aStrikeout ) >= nWidth )
- aStrikeout = aStrikeout.replaceAt( 0, 1, "" );
+ aStrikeout = aStrikeout.replaceAt( 0, 1, u"" );
aStrikeout += aStrikeoutChar;
bool bShadow = m_aCurrentPDFState.m_aFont.IsShadow();
if ( bShadow )
diff --git a/vcl/source/image/ImplImage.cxx b/vcl/source/image/ImplImage.cxx
index 6df732c09d97..a5637c3bb452 100644
--- a/vcl/source/image/ImplImage.cxx
+++ b/vcl/source/image/ImplImage.cxx
@@ -66,7 +66,7 @@ bool ImplImage::loadStockAtScale(double fScale, BitmapEx &rBitmapEx)
sal_Int32 nStart = maStockName.indexOf("%3f");
sal_Int32 nEnd = maStockName.lastIndexOf(".");
- OUString aFileName = maStockName.replaceAt(nStart, nEnd - nStart, "");
+ OUString aFileName = maStockName.replaceAt(nStart, nEnd - nStart, u"");
if (!ImageTree::get().loadImage(aFileName, aIconTheme, aBitmapEx, true,
nScalePercentage, eScalingFlags))
{
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index bdeee4fbc428..8fb3a2c87118 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -2023,7 +2023,7 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
{
if ( (nIndex > 1) || (nIndex == aStr.getLength()) )
nIndex--;
- aStr = aStr.replaceAt( nIndex, 1, "");
+ aStr = aStr.replaceAt( nIndex, 1, u"");
}
}
@@ -2295,12 +2295,12 @@ OUString OutputDevice::GetNonMnemonicString( const OUString& rStr, sal_Int32& rM
{
if ( rMnemonicPos == -1 )
rMnemonicPos = i;
- aStr = aStr.replaceAt( i, 1, "" );
+ aStr = aStr.replaceAt( i, 1, u"" );
nLen--;
}
else
{
- aStr = aStr.replaceAt( i, 1, "" );
+ aStr = aStr.replaceAt( i, 1, u"" );
nLen--;
i++;
}
diff --git a/vcl/source/treelist/transfer.cxx b/vcl/source/treelist/transfer.cxx
index 35422acc2273..f86501cc8def 100644
--- a/vcl/source/treelist/transfer.cxx
+++ b/vcl/source/treelist/transfer.cxx
@@ -1875,7 +1875,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo
}
aURL = aString.copy( nStart + 1, nLen );
- aString = aString.replaceAt( 0, nStart + 1 + nLen, "" );
+ aString = aString.replaceAt( 0, nStart + 1 + nLen, u"" );
nStart = aString.indexOf( '@' );
nLen = aString.toInt32();
diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx
index 4dd12668b48d..d412b2ad4071 100644
--- a/vcl/source/window/mnemonic.cxx
+++ b/vcl/source/window/mnemonic.cxx
@@ -195,7 +195,7 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey )
if ( maMnemonics[nMnemonicIndex] )
{
maMnemonics[nMnemonicIndex] = 0;
- rKey = rKey.replaceAt( nIndex, 0, OUString(m_cMnemonic) );
+ rKey = rKey.replaceAt( nIndex, 0, rtl::OUStringChar(m_cMnemonic) );
bChanged = true;
break;
}
@@ -247,7 +247,7 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey )
if ( nBestCount != 0xFFFF )
{
maMnemonics[nBestMnemonicIndex] = 0;
- rKey = rKey.replaceAt( nBestIndex, 0, OUString(m_cMnemonic) );
+ rKey = rKey.replaceAt( nBestIndex, 0, rtl::OUStringChar(m_cMnemonic) );
bChanged = true;
}
}
@@ -327,7 +327,7 @@ OUString MnemonicGenerator::EraseAllMnemonicChars( const OUString& rStr )
aStr[ i+2 ] == ')' &&
c >= MNEMONIC_RANGE_2_START && c <= MNEMONIC_RANGE_2_END )
{
- aStr = aStr.replaceAt( i-1, 4, "" );
+ aStr = aStr.replaceAt( i-1, 4, u"" );
nLen -= 4;
i--;
continue;
@@ -335,7 +335,7 @@ OUString MnemonicGenerator::EraseAllMnemonicChars( const OUString& rStr )
}
// remove standard mnemonics
- aStr = aStr.replaceAt( i, 1, "" );
+ aStr = aStr.replaceAt( i, 1, u"" );
nLen--;
}
else