diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-06-29 14:42:54 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-06-29 16:23:23 +0200 |
commit | 318f2b64cc32038b2ab1b18b4a13e3f41e1e35ff (patch) | |
tree | c375d326f022d1e3f3b9baea19ea262982dbc4a3 /svtools | |
parent | 231fb4182fc9e81f801ff1d1355f7a613d0856c2 (diff) |
remove some createFromAscii usage
there are a lot more of them:
git grep 'createFromAscii[^)]*"'
Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/transfer.cxx | 4 | ||||
-rw-r--r-- | svtools/source/table/cellvalueconversion.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol.cxx | 9 |
3 files changed, 6 insertions, 9 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 0f9c540935ba..a2ff668f2d96 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -775,7 +775,7 @@ sal_Bool TransferableHelper::SetBitmapEx( const BitmapEx& rBitmapEx, const DataF { SvMemoryStream aMemStm( 65535, 65535 ); - if(rFlavor.MimeType.equalsIgnoreAsciiCase(::rtl::OUString::createFromAscii("image/png"))) + if(rFlavor.MimeType.equalsIgnoreAsciiCase("image/png")) { // write a PNG ::vcl::PNGWriter aPNGWriter(rBitmapEx); @@ -1733,7 +1733,7 @@ sal_Bool TransferableDataHelper::GetBitmapEx( const DataFlavor& rFlavor, BitmapE if(bRet) { - if(rFlavor.MimeType.equalsIgnoreAsciiCase(::rtl::OUString::createFromAscii("image/png"))) + if(rFlavor.MimeType.equalsIgnoreAsciiCase("image/png")) { // it's a PNG, import to BitmapEx ::vcl::PNGReader aPNGReader(*xStm); diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx index d753b5293090..06cb0759ec24 100644 --- a/svtools/source/table/cellvalueconversion.cxx +++ b/svtools/source/table/cellvalueconversion.cxx @@ -334,7 +334,7 @@ namespace svt // ensure a NullDate we will assume later on UnoDate const aNullDate( 1, 1, 1900 ); Reference< XPropertySet > const xFormatSettings( xSupplier->getNumberFormatSettings(), UNO_SET_THROW ); - xFormatSettings->setPropertyValue( OUString::createFromAscii( "NullDate" ), makeAny( aNullDate ) ); + xFormatSettings->setPropertyValue( "NullDate", makeAny( aNullDate ) ); // knit xFormatter->attachNumberFormatsSupplier( xSupplier ); diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx index 877f32d12e3f..6f86f92264c5 100644 --- a/svtools/source/table/tablecontrol.cxx +++ b/svtools/source/table/tablecontrol.cxx @@ -311,13 +311,11 @@ namespace svt { namespace table //if the name is equal to cell content, it'll be read twice if(GetModel()->hasColumnHeaders()) { - aRetText = GetColumnName(_nCol); - aRetText += OUString::createFromAscii(" , "); + aRetText = GetColumnName(_nCol) + " , "; } if(GetModel()->hasRowHeaders()) { - aRetText += GetRowName(_nRow); - aRetText += OUString::createFromAscii(" , "); + aRetText += GetRowName(_nRow) + " , "; } //aRetText = GetAccessibleCellText(_nRow, _nCol); break; @@ -356,8 +354,7 @@ namespace svt { namespace table // if the name is equal to cell content, it'll be read twice if ( GetModel()->hasColumnHeaders() ) { - aRetText = GetColumnName( GetCurrentColumn() ); - aRetText += OUString::createFromAscii( " , " ); + aRetText = GetColumnName( GetCurrentColumn() ) + " , "; } if ( GetModel()->hasRowHeaders() ) { |