tdf#100726: Improve readability of OUString concatenation
this bug fixed in the modules between canvas - cppu Change-Id: I2022b022897dafde20251352376e3facdb9b8d75 Reviewed-on: https://gerrit.libreoffice.org/27663 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
parent
dadb28a2fb
commit
efef273e2c
@ -236,9 +236,7 @@ namespace cairocanvas
|
||||
|
||||
if( mpRefDevice )
|
||||
{
|
||||
OUString aFilename("dbg_frontbuffer");
|
||||
aFilename += OUString::number(nFilePostfixCount);
|
||||
aFilename += ".bmp";
|
||||
OUString aFilename = "dbg_frontbuffer" + OUString::number(nFilePostfixCount) + ".bmp";
|
||||
|
||||
SvFileStream aStream( aFilename, STREAM_STD_READWRITE );
|
||||
|
||||
|
@ -489,11 +489,9 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
|
||||
{
|
||||
OUString aNewLine( "\n" );
|
||||
|
||||
aRet=SCH_RESSTR(STR_TIP_DATAPOINT_INDEX);
|
||||
aRet+=aNewLine;
|
||||
aRet+=SCH_RESSTR(STR_TIP_DATASERIES);
|
||||
aRet+=aNewLine;
|
||||
aRet+=SCH_RESSTR(STR_TIP_DATAPOINT_VALUES);
|
||||
aRet= SCH_RESSTR(STR_TIP_DATAPOINT_INDEX) + aNewLine
|
||||
+ SCH_RESSTR(STR_TIP_DATASERIES) + aNewLine
|
||||
+ SCH_RESSTR(STR_TIP_DATAPOINT_VALUES);
|
||||
}
|
||||
else
|
||||
aRet=SCH_RESSTR(STR_TIP_DATAPOINT);
|
||||
@ -637,9 +635,7 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
|
||||
Reference< chart2::XRegressionCurve > xCurve( RegressionCurveHelper::getRegressionCurveAtIndex(xCurveCnt, nCurveIndex) );
|
||||
if( xCurve.is())
|
||||
{
|
||||
aRet += " (";
|
||||
aRet += RegressionCurveHelper::getRegressionCurveName(xCurve);
|
||||
aRet += " )";
|
||||
aRet += " (" + RegressionCurveHelper::getRegressionCurveName(xCurve) + " )";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -790,19 +786,15 @@ OUString ObjectNameProvider::getNameForCID(
|
||||
case OBJECTTYPE_DATA_CURVE:
|
||||
case OBJECTTYPE_DATA_CURVE_EQUATION:
|
||||
{
|
||||
OUString aRet = lcl_getFullSeriesName( rObjectCID, xModel );
|
||||
aRet += " ";
|
||||
OUString aRet = lcl_getFullSeriesName( rObjectCID, xModel ) + " ";
|
||||
if( eType == OBJECTTYPE_DATA_POINT || eType == OBJECTTYPE_DATA_LABEL )
|
||||
{
|
||||
aRet += getName( OBJECTTYPE_DATA_POINT );
|
||||
sal_Int32 nPointIndex = ObjectIdentifier::getIndexFromParticleOrCID( rObjectCID );
|
||||
aRet += " ";
|
||||
aRet += OUString::number(nPointIndex+1);
|
||||
|
||||
aRet += " " + OUString::number(nPointIndex+1);
|
||||
if( eType == OBJECTTYPE_DATA_LABEL )
|
||||
{
|
||||
aRet += " ";
|
||||
aRet += getName( OBJECTTYPE_DATA_LABEL );
|
||||
aRet += " " + getName( OBJECTTYPE_DATA_LABEL );
|
||||
}
|
||||
}
|
||||
else if (eType == OBJECTTYPE_DATA_CURVE || eType == OBJECTTYPE_DATA_CURVE_EQUATION)
|
||||
@ -810,8 +802,7 @@ OUString ObjectNameProvider::getNameForCID(
|
||||
Reference< chart2::XDataSeries > xSeries( ObjectIdentifier::getDataSeriesForCID( rObjectCID , xModel ));
|
||||
Reference< chart2::XRegressionCurveContainer > xCurveCnt( xSeries, uno::UNO_QUERY );
|
||||
|
||||
aRet += " ";
|
||||
aRet += getName(eType);
|
||||
aRet += " " + getName(eType);
|
||||
|
||||
if( xCurveCnt.is())
|
||||
{
|
||||
@ -819,9 +810,7 @@ OUString ObjectNameProvider::getNameForCID(
|
||||
Reference< chart2::XRegressionCurve > xCurve( RegressionCurveHelper::getRegressionCurveAtIndex(xCurveCnt, nCurveIndex) );
|
||||
if( xCurve.is())
|
||||
{
|
||||
aRet += " (";
|
||||
aRet += RegressionCurveHelper::getRegressionCurveName(xCurve);
|
||||
aRet += ")";
|
||||
aRet += " (" + RegressionCurveHelper::getRegressionCurveName(xCurve) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1169,8 +1169,7 @@ OUString ObjectIdentifier::createSeriesSubObjectStub( ObjectType eSubObjectType
|
||||
, const OUString& rDragMethodServiceName
|
||||
, const OUString& rDragParameterString )
|
||||
{
|
||||
OUString aChildParticle( getStringForType( eSubObjectType ) );
|
||||
aChildParticle+=("=");
|
||||
OUString aChildParticle = getStringForType( eSubObjectType ) + ("=");
|
||||
|
||||
return createClassifiedIdentifierForParticles(
|
||||
rSeriesParticle, aChildParticle
|
||||
|
@ -41,9 +41,7 @@ sal_Bool SAL_CALL component_writeInfo(
|
||||
{
|
||||
try
|
||||
{
|
||||
OUString aImpl( "/" );
|
||||
aImpl += SampleAddIn::getImplementationName_Static();
|
||||
aImpl += "/UNO/SERVICES";
|
||||
OUString aImpl = "/" + SampleAddIn::getImplementationName_Static() + "/UNO/SERVICES";
|
||||
|
||||
uno::Reference< registry::XRegistryKey> xNewKey(
|
||||
reinterpret_cast<registry::XRegistryKey*>( pRegistryKey )->createKey( aImpl ) );
|
||||
|
@ -218,8 +218,7 @@ OUString EmbeddedObjectContainer::CreateUniqueObjectName()
|
||||
sal_Int32 i=1;
|
||||
do
|
||||
{
|
||||
aStr = aPersistName;
|
||||
aStr += OUString::number( i++ );
|
||||
aStr = aPersistName + OUString::number( i++ );
|
||||
}
|
||||
while( HasEmbeddedObject( aStr ) );
|
||||
// TODO/LATER: should we consider deleted objects?
|
||||
|
@ -57,8 +57,7 @@ OUString MimeConfigurationHelper::GetStringClassIDRepresentation( const uno::Seq
|
||||
|
||||
sal_Int32 nDigit1 = (sal_Int32)( (sal_uInt8)aClassID[nInd] / 16 );
|
||||
sal_Int32 nDigit2 = (sal_uInt8)aClassID[nInd] % 16;
|
||||
aResult += OUString::number( nDigit1, 16 );
|
||||
aResult += OUString::number( nDigit2, 16 );
|
||||
aResult += OUString::number( nDigit1, 16 ) + OUString::number( nDigit2, 16 );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,8 +98,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > ReadRelationsInfoSequence(
|
||||
const uno::Reference< uno::XComponentContext >& rContext )
|
||||
throw( uno::Exception )
|
||||
{
|
||||
OUString aStringID = "_rels/";
|
||||
aStringID += aStreamName;
|
||||
OUString aStringID = "_rels/" + aStreamName;
|
||||
return ReadSequence_Impl( xInStream, aStringID, RELATIONINFO_FORMAT, rContext );
|
||||
}
|
||||
|
||||
|
@ -1396,8 +1396,7 @@ OUString createUniqueName( const Sequence< OUString >& _rNames, const OUString&
|
||||
|
||||
while ( aUsedNames.find( sName ) != aUsedNames.end() )
|
||||
{
|
||||
sName = _rBaseName;
|
||||
sName += OUString::number( ++nPos );
|
||||
sName = _rBaseName + OUString::number( ++nPos );
|
||||
}
|
||||
return sName;
|
||||
}
|
||||
|
@ -194,8 +194,7 @@ void OPreparedStatement::setParameter(sal_Int32 parameterIndex, const DataTypeEn
|
||||
m_pParameters->get_Count(&nCount);
|
||||
if(nCount < (parameterIndex-1))
|
||||
{
|
||||
OUString sDefaultName( "parame" );
|
||||
sDefaultName += OUString::number(parameterIndex);
|
||||
OUString sDefaultName = "parame" + OUString::number(parameterIndex);
|
||||
ADOParameter* pParam = m_Command.CreateParameter(sDefaultName,_eType,adParamInput,_nSize,_Val);
|
||||
if(pParam)
|
||||
{
|
||||
@ -461,8 +460,7 @@ void OPreparedStatement::replaceParameterNodeName(OSQLParseNode* _pNode,
|
||||
{
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(OUString(":") ,SQLNodeType::Punctuation,0);
|
||||
delete pChildNode->replace(pChildNode->getChild(0),pNewNode);
|
||||
OUString sParameterName = _sDefaultName;
|
||||
sParameterName += OUString::number(++_rParameterCount);
|
||||
OUString sParameterName = _sDefaultName + OUString::number(++_rParameterCount);
|
||||
pChildNode->append(new OSQLParseNode( sParameterName,SQLNodeType::Name,0));
|
||||
}
|
||||
else
|
||||
|
@ -476,8 +476,7 @@ OOperand* OPredicateCompiler::execute_Operand(OSQLParseNode* pPredicateNode) thr
|
||||
(SQL_ISPUNCTUATION(pPredicateNode->getChild(0),"+") || SQL_ISPUNCTUATION(pPredicateNode->getChild(0),"-")) &&
|
||||
pPredicateNode->getChild(1)->getNodeType() == SQLNodeType::IntNum)
|
||||
{ // if -1 or +1 is there
|
||||
OUString aValue(pPredicateNode->getChild(0)->getTokenValue());
|
||||
aValue += pPredicateNode->getChild(1)->getTokenValue();
|
||||
OUString aValue = pPredicateNode->getChild(0)->getTokenValue() + pPredicateNode->getChild(1)->getTokenValue();
|
||||
pOperand = new OOperandConst(*pPredicateNode->getChild(1), aValue);
|
||||
}
|
||||
else if( SQL_ISRULE(pPredicateNode,set_fct_spec) && SQL_ISPUNCTUATION(pPredicateNode->getChild(0),"{") )
|
||||
|
@ -323,10 +323,7 @@ namespace connectivity
|
||||
|
||||
Sequence< PropertyValue > aConnectionArgs;
|
||||
aProperties >>= aConnectionArgs;
|
||||
|
||||
OUString sConnectURL("jdbc:hsqldb:");
|
||||
|
||||
sConnectURL += sSystemPath;
|
||||
OUString sConnectURL = "jdbc:hsqldb:" + sSystemPath;
|
||||
Reference<XConnection> xOrig;
|
||||
try
|
||||
{
|
||||
|
@ -260,9 +260,7 @@ void SAL_CALL OHSQLTable::alterColumnByName( const OUString& colName, const Refe
|
||||
|
||||
void OHSQLTable::alterColumnType(sal_Int32 nNewType,const OUString& _rColName, const Reference<XPropertySet>& _xDescriptor)
|
||||
{
|
||||
OUString sSql = getAlterTableColumnPart();
|
||||
|
||||
sSql += " ALTER COLUMN ";
|
||||
OUString sSql = getAlterTableColumnPart() + " ALTER COLUMN ";
|
||||
#if OSL_DEBUG_LEVEL > 0
|
||||
try
|
||||
{
|
||||
|
@ -924,9 +924,7 @@ inline void EnvironmentsData::getEnvironment(
|
||||
*ppEnv = nullptr;
|
||||
}
|
||||
|
||||
OUString aKey(
|
||||
OUString::number( reinterpret_cast< sal_IntPtr >(pContext) ) );
|
||||
aKey += rEnvDcp;
|
||||
OUString aKey = OUString::number( reinterpret_cast< sal_IntPtr >(pContext) ) + rEnvDcp;
|
||||
|
||||
// try to find registered mapping
|
||||
OUString2EnvironmentMap::const_iterator const iFind(
|
||||
|
Loading…
x
Reference in New Issue
Block a user