diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:39 +0200 |
commit | c2f8beb5934aa345ff7b4aebc233c73c7642e487 (patch) | |
tree | 512439e5b7ffce02c3af1cd2a390cdf5c61fca3c /extensions/source/propctrlr | |
parent | 6f6884b198a1ba13a722810da20b7dae7dd84833 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Iea6b497b91b8874bfaded494a114cbeef4417b70
Diffstat (limited to 'extensions/source/propctrlr')
-rw-r--r-- | extensions/source/propctrlr/eformshelper.cxx | 4 | ||||
-rw-r--r-- | extensions/source/propctrlr/eventhandler.cxx | 14 | ||||
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 6 | ||||
-rw-r--r-- | extensions/source/propctrlr/pcrcommon.cxx | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/extensions/source/propctrlr/eformshelper.cxx b/extensions/source/propctrlr/eformshelper.cxx index a569055e5494..4a157981b20f 100644 --- a/extensions/source/propctrlr/eformshelper.cxx +++ b/extensions/source/propctrlr/eformshelper.cxx @@ -58,9 +58,9 @@ namespace pcr OUString composeModelElementUIName( const OUString& _rModelName, const OUString& _rElementName ) { OUStringBuffer aBuffer; - aBuffer.appendAscii( "[" ); + aBuffer.append( "[" ); aBuffer.append( _rModelName ); - aBuffer.appendAscii( "] " ); + aBuffer.append( "] " ); aBuffer.append( _rElementName ); return aBuffer.makeStringAndClear(); } diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 19a3f6e08a7d..d429adc09c1f 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -146,9 +146,9 @@ namespace pcr ,nId( _nId ) { OUStringBuffer aQualifiedListenerClass; - aQualifiedListenerClass.appendAscii( "com.sun.star." ); + aQualifiedListenerClass.append( "com.sun.star." ); aQualifiedListenerClass.appendAscii( _pListenerNamespaceAscii ); - aQualifiedListenerClass.appendAscii( "." ); + aQualifiedListenerClass.append( "." ); aQualifiedListenerClass.appendAscii( _pListenerClassAsciiName ); sListenerClassName = aQualifiedListenerClass.makeStringAndClear(); } @@ -264,9 +264,9 @@ namespace pcr OUString sMacroPath = aScriptEvent.ScriptCode.copy( nPrefixLen + 1 ); OUStringBuffer aNewStyleSpec; - aNewStyleSpec.appendAscii( "vnd.sun.star.script:" ); + aNewStyleSpec.append( "vnd.sun.star.script:" ); aNewStyleSpec.append ( sMacroPath ); - aNewStyleSpec.appendAscii( "?language=Basic&location=" ); + aNewStyleSpec.append( "?language=Basic&location=" ); aNewStyleSpec.append ( sLocation ); aScriptEvent.ScriptCode = aNewStyleSpec.makeStringAndClear(); @@ -658,14 +658,14 @@ namespace pcr if ( !(sLocation.isEmpty() && sLanguage.isEmpty()) ) { - aComposeBuffer.appendAscii( " (" ); + aComposeBuffer.append( " (" ); // location OSL_ENSURE( !sLocation.isEmpty(), "EventHandler::convertToControlValue: unexpected: no location!" ); if ( !sLocation.isEmpty() ) { aComposeBuffer.append( sLocation ); - aComposeBuffer.appendAscii( ", " ); + aComposeBuffer.append( ", " ); } // language @@ -1142,7 +1142,7 @@ namespace pcr OUStringBuffer aCompleteName; aCompleteName.append( _rScriptEvent.ListenerType ); - aCompleteName.appendAscii( "::" ); + aCompleteName.append( "::" ); aCompleteName.append( _rScriptEvent.EventMethod ); OUString sCompleteName( aCompleteName.makeStringAndClear() ); diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 78f2551b55ec..02696e090109 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -766,7 +766,7 @@ namespace pcr { // font name displayName.append( aFont.Name ); - displayName.appendAscii( ", " ); + displayName.append( ", " ); // font style ::FontWeight eWeight = VCLUnoHelper::ConvertFontWeight( aFont.Weight ); @@ -788,7 +788,7 @@ namespace pcr // font size if ( aFont.Height ) { - displayName.appendAscii( ", " ); + displayName.append( ", " ); displayName.append( sal_Int32( aFont.Height ) ); } } @@ -2544,7 +2544,7 @@ namespace pcr if ( bAdd ) { sTemp.append(_sName); - sTemp.appendAscii("/"); + sTemp.append("/"); } sTemp.append(*pQueryNames); Reference< XNameAccess > xSubQueries(_xQueryNames->getByName(*pQueryNames),UNO_QUERY); diff --git a/extensions/source/propctrlr/pcrcommon.cxx b/extensions/source/propctrlr/pcrcommon.cxx index df8146329160..f37b6038927f 100644 --- a/extensions/source/propctrlr/pcrcommon.cxx +++ b/extensions/source/propctrlr/pcrcommon.cxx @@ -52,7 +52,7 @@ namespace pcr OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) ); INetURLObject aHID( aTmp ); if ( aHID.GetProtocol() == INetProtocol::NotValid ) - aBuffer.appendAscii( INET_HID_SCHEME ); + aBuffer.append( INET_HID_SCHEME ); aBuffer.append( aTmp.getStr() ); return aBuffer.makeStringAndClear(); } |