remove some unnecessary use of OUString constructor

found with
   git grep -nP '<<= OUString\(\w*[A-Za-z]+'

Change-Id: I43354842f1e0418fb292f2e8e0cb30f1229d1c67
Reviewed-on: https://gerrit.libreoffice.org/34864
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2017-03-03 16:01:45 +02:00
parent 6b58caf059
commit aadf790bbc
27 changed files with 50 additions and 50 deletions

View File

@ -226,7 +226,7 @@ namespace accessibility
Reference< XAccessible > xChild = Reference< XAccessible > xChild =
m_pTabListBox->CreateAccessibleCell( nRow, nCol ); m_pTabListBox->CreateAccessibleCell( nRow, nCol );
uno::Any aOldValue, aNewValue; uno::Any aOldValue, aNewValue;
aOldValue <<= OUString( pData->m_sOldText ); aOldValue <<= pData->m_sOldText;
OUString sNewText( m_pTabListBox->GetCellText( nRow, nCol ) ); OUString sNewText( m_pTabListBox->GetCellText( nRow, nCol ) );
aNewValue <<= sNewText; aNewValue <<= sNewText;
TriState eState = TRISTATE_INDET; TriState eState = TRISTATE_INDET;

View File

@ -305,7 +305,7 @@ namespace dbaui
return true; return true;
} }
m_aFinalValues[m_nCurrentlySelected].Value <<= OUString(m_pParam->GetText()); m_aFinalValues[m_nCurrentlySelected].Value <<= m_pParam->GetText();
} }
// initialize the controls with the new values // initialize the controls with the new values

View File

@ -190,13 +190,13 @@ Sequence<beans::PropertyValue> SvxUnoNumberingRules::getNumberingRuleByIndex(sal
} }
{ {
aVal <<= OUString(rFmt.GetPrefix()); aVal <<= rFmt.GetPrefix();
beans::PropertyValue aPrefixProp( UNO_NAME_NRULE_PREFIX, -1, aVal, beans::PropertyState_DIRECT_VALUE); beans::PropertyValue aPrefixProp( UNO_NAME_NRULE_PREFIX, -1, aVal, beans::PropertyState_DIRECT_VALUE);
pArray[nIdx++] = aPrefixProp; pArray[nIdx++] = aPrefixProp;
} }
{ {
aVal <<= OUString(rFmt.GetSuffix()); aVal <<= rFmt.GetSuffix();
beans::PropertyValue aSuffixProp( UNO_NAME_NRULE_SUFFIX, -1, aVal, beans::PropertyState_DIRECT_VALUE); beans::PropertyValue aSuffixProp( UNO_NAME_NRULE_SUFFIX, -1, aVal, beans::PropertyState_DIRECT_VALUE);
pArray[nIdx++] = aSuffixProp; pArray[nIdx++] = aSuffixProp;
} }

View File

@ -666,7 +666,7 @@ bool FlashExporter::getMetaFile( Reference< XComponent >&xComponent, GDIMetaFile
aDescriptor[0].Value <<= bExportAsJPEG ? OUString("PNG") : OUString("SVM"); aDescriptor[0].Value <<= bExportAsJPEG ? OUString("PNG") : OUString("SVM");
aDescriptor[1].Name = "URL"; aDescriptor[1].Name = "URL";
aDescriptor[1].Value <<= OUString(aFile.GetURL()); aDescriptor[1].Value <<= aFile.GetURL();
aDescriptor[2].Name = "FilterData"; aDescriptor[2].Name = "FilterData";
aDescriptor[2].Value <<= aFilterData; aDescriptor[2].Value <<= aFilterData;
if( bOnlyBackground ) if( bOnlyBackground )

View File

@ -6986,7 +6986,7 @@ css::uno::Reference < css::embed::XEmbeddedObject > SvxMSDffManager::CheckForCo
aMedium[1].Name = "URL"; aMedium[1].Name = "URL";
aMedium[1].Value <<= OUString( "private:stream" ); aMedium[1].Value <<= OUString( "private:stream" );
aMedium[2].Name = "DocumentBaseURL"; aMedium[2].Name = "DocumentBaseURL";
aMedium[2].Value <<= OUString(rBaseURL); aMedium[2].Value <<= rBaseURL;
if ( !aFilterName.isEmpty() ) if ( !aFilterName.isEmpty() )
{ {

View File

@ -315,7 +315,7 @@ namespace XSLT
nv.Value <<= aURL; nv.Value <<= aURL;
args[1] <<= nv; args[1] <<= nv;
nv.Name = "SourceBaseURL"; nv.Name = "SourceBaseURL";
nv.Value <<= OUString(INetURLObject(aURL).getBase()); nv.Value <<= INetURLObject(aURL).getBase();
args[2] <<= nv; args[2] <<= nv;
m_tcontrol = impl_createTransformer(msUserData[1], args); m_tcontrol = impl_createTransformer(msUserData[1], args);

View File

@ -3026,7 +3026,7 @@ void OReportController::insertGraphic()
xController->getValue( ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_LINK, 0) >>= bLink; xController->getValue( ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_LINK, 0) >>= bLink;
uno::Sequence<beans::PropertyValue> aArgs(2); uno::Sequence<beans::PropertyValue> aArgs(2);
aArgs[0].Name = PROPERTY_IMAGEURL; aArgs[0].Name = PROPERTY_IMAGEURL;
aArgs[0].Value <<= OUString(aDialog.GetPath()); aArgs[0].Value <<= aDialog.GetPath();
aArgs[1].Name = PROPERTY_PRESERVEIRI; aArgs[1].Name = PROPERTY_PRESERVEIRI;
aArgs[1].Value <<= bLink; aArgs[1].Value <<= bLink;
createControl(aArgs,xSection,OUString(),OBJ_DLG_IMAGECONTROL); createControl(aArgs,xSection,OUString(),OBJ_DLG_IMAGECONTROL);

View File

@ -220,10 +220,10 @@ void RecentlyUsedMasterPages::SavePersistentValues()
{ {
xSet->insertByName (sKey, makeAny(xChild)); xSet->insertByName (sKey, makeAny(xChild));
aValue <<= OUString(iDescriptor->msURL); aValue <<= iDescriptor->msURL;
xChild->replaceByName (sURLMemberName, aValue); xChild->replaceByName (sURLMemberName, aValue);
aValue <<= OUString(iDescriptor->msName); aValue <<= iDescriptor->msName;
xChild->replaceByName (sNameMemberName, aValue); xChild->replaceByName (sNameMemberName, aValue);
} }
} }

View File

@ -1383,8 +1383,8 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
{ {
const SvxFontItem *pFont = static_cast<const SvxFontItem *>(pItem); const SvxFontItem *pFont = static_cast<const SvxFontItem *>(pItem);
aSeq[nSeqIndex++] <<= OUString(pFont->GetFamilyName()); aSeq[nSeqIndex++] <<= pFont->GetFamilyName();
aSeq[nSeqIndex++] <<= OUString(pFont->GetStyleName()); aSeq[nSeqIndex++] <<= pFont->GetStyleName();
aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetFamily()); aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetFamily());
aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetPitch()); aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetPitch());
aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetCharSet()); aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetCharSet());
@ -1393,8 +1393,8 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
const SvxFontItem& rFont = static_cast<const SvxFontItem&>(rPool.GetDefaultItem( nWhichId )); const SvxFontItem& rFont = static_cast<const SvxFontItem&>(rPool.GetDefaultItem( nWhichId ));
aSeq[nSeqIndex++] <<= OUString(rFont.GetFamilyName()); aSeq[nSeqIndex++] <<= rFont.GetFamilyName();
aSeq[nSeqIndex++] <<= OUString(rFont.GetStyleName()); aSeq[nSeqIndex++] <<= rFont.GetStyleName();
aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetFamily()); aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetFamily());
aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetPitch()); aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetPitch());
aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetCharSet()); aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetCharSet());

View File

@ -703,7 +703,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu
switch ( (*ppEntries)->mnHandle ) switch ( (*ppEntries)->mnHandle )
{ {
case HANDLE_FORMULA: case HANDLE_FORMULA:
*pValue <<= OUString(pDocSh->GetText()); *pValue <<= pDocSh->GetText();
break; break;
case HANDLE_FONT_NAME_VARIABLES : case HANDLE_FONT_NAME_VARIABLES :
case HANDLE_FONT_NAME_FUNCTIONS : case HANDLE_FONT_NAME_FUNCTIONS :
@ -714,7 +714,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu
case HANDLE_CUSTOM_FONT_NAME_FIXED : case HANDLE_CUSTOM_FONT_NAME_FIXED :
{ {
const SmFace & rFace = aFormat.GetFont((*ppEntries)->mnMemberId); const SmFace & rFace = aFormat.GetFont((*ppEntries)->mnMemberId);
*pValue <<= OUString(rFace.GetFamilyName()); *pValue <<= rFace.GetFamilyName();
} }
break; break;
case HANDLE_CUSTOM_FONT_FIXED_POSTURE: case HANDLE_CUSTOM_FONT_FIXED_POSTURE:

View File

@ -235,14 +235,14 @@ void SvtHelpOptions_Impl::ImplCommit()
break; break;
case HelpProperty::Locale: case HelpProperty::Locale:
pValues[nProp] <<= OUString(aLocale); pValues[nProp] <<= aLocale;
break; break;
case HelpProperty::System: case HelpProperty::System:
pValues[nProp] <<= OUString(aSystem); pValues[nProp] <<= aSystem;
break; break;
case HelpProperty::StyleSheet: case HelpProperty::StyleSheet:
pValues[nProp] <<= OUString(sHelpStyleSheet); pValues[nProp] <<= sHelpStyleSheet;
break; break;
} }

View File

@ -439,9 +439,9 @@ void SvxRubyDialog::GetRubyText()
for (sal_Int32 nProp = 0; nProp < rProps.getLength(); nProp++) for (sal_Int32 nProp = 0; nProp < rProps.getLength(); nProp++)
{ {
if (pProps[nProp].Name == cRubyBaseText) if (pProps[nProp].Name == cRubyBaseText)
pProps[nProp].Value <<= OUString(aEditArr[i]->GetText()); pProps[nProp].Value <<= aEditArr[i]->GetText();
else if (pProps[nProp].Name == cRubyText) else if (pProps[nProp].Name == cRubyText)
pProps[nProp].Value <<= OUString(aEditArr[i + 1]->GetText()); pProps[nProp].Value <<= aEditArr[i + 1]->GetText();
} }
} }
} }

View File

@ -1433,7 +1433,7 @@ IMPL_LINK( SvxSearchDialog, CommandHdl_Impl, Button *, pBtn, void )
uno::Sequence < beans::PropertyValue > aArgs(2); uno::Sequence < beans::PropertyValue > aArgs(2);
beans::PropertyValue* pArgs = aArgs.getArray(); beans::PropertyValue* pArgs = aArgs.getArray();
pArgs[0].Name = "SearchString"; pArgs[0].Name = "SearchString";
pArgs[0].Value <<= OUString(m_pSearchLB->GetText()); pArgs[0].Value <<= m_pSearchLB->GetText();
pArgs[1].Name = "ParentWindow"; pArgs[1].Name = "ParentWindow";
pArgs[1].Value <<= VCLUnoHelper::GetInterface( this ); pArgs[1].Value <<= VCLUnoHelper::GetInterface( this );
if(pBtn == m_pSearchComponent1PB) if(pBtn == m_pSearchComponent1PB)

View File

@ -1584,7 +1584,7 @@ bool DbFormattedField::commitControl()
// ein LeerString wird erst mal standardmaessig als void weitergereicht // ein LeerString wird erst mal standardmaessig als void weitergereicht
} }
else else
aNewVal <<= OUString(rField.GetTextValue()); aNewVal <<= rField.GetTextValue();
m_rColumn.getModel()->setPropertyValue(FM_PROP_EFFECTIVE_VALUE, aNewVal); m_rColumn.getModel()->setPropertyValue(FM_PROP_EFFECTIVE_VALUE, aNewVal);
return true; return true;

View File

@ -543,7 +543,7 @@ DECLARE_ODFEXPORT_TEST(testFdo58949, "fdo58949.docx")
save("writer8", aTempFile); save("writer8", aTempFile);
uno::Sequence<uno::Any> aArgs(1); uno::Sequence<uno::Any> aArgs(1);
aArgs[0] <<= OUString(aTempFile.GetURL()); aArgs[0] <<= aTempFile.GetURL();
uno::Reference<container::XNameAccess> xNameAccess(m_xSFactory->createInstanceWithArguments("com.sun.star.packages.zip.ZipFileAccess", aArgs), uno::UNO_QUERY); uno::Reference<container::XNameAccess> xNameAccess(m_xSFactory->createInstanceWithArguments("com.sun.star.packages.zip.ZipFileAccess", aArgs), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(true, bool(xNameAccess->hasByName("Obj102"))); CPPUNIT_ASSERT_EQUAL(true, bool(xNameAccess->hasByName("Obj102")));
} }

View File

@ -1101,7 +1101,7 @@ bool SwSetExpField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const
rAny <<= GetInputFlag(); rAny <<= GetInputFlag();
break; break;
case FIELD_PROP_PAR4: case FIELD_PROP_PAR4:
rAny <<= OUString(GetExpStr()); rAny <<= GetExpStr();
break; break;
default: default:
return SwField::QueryValue(rAny, nWhichId); return SwField::QueryValue(rAny, nWhichId);

View File

@ -2134,7 +2134,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
} }
else if(FN_UNO_FRAME_STYLE_NAME == pEntry->nWID) else if(FN_UNO_FRAME_STYLE_NAME == pEntry->nWID)
{ {
aAny <<= OUString(SwStyleNameMapper::GetProgName(pFormat->DerivedFrom()->GetName(), SwGetPoolIdFromName::FrmFmt ) ); aAny <<= SwStyleNameMapper::GetProgName(pFormat->DerivedFrom()->GetName(), SwGetPoolIdFromName::FrmFmt );
} }
// #i73249# // #i73249#
else if( FN_UNO_TITLE == pEntry->nWID ) else if( FN_UNO_TITLE == pEntry->nWID )
@ -2142,7 +2142,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
SwFlyFrameFormat& rFlyFormat = dynamic_cast<SwFlyFrameFormat&>(*pFormat); SwFlyFrameFormat& rFlyFormat = dynamic_cast<SwFlyFrameFormat&>(*pFormat);
// assure that <SdrObject> instance exists. // assure that <SdrObject> instance exists.
GetOrCreateSdrObject(rFlyFormat); GetOrCreateSdrObject(rFlyFormat);
aAny <<= OUString(rFlyFormat.GetObjTitle()); aAny <<= rFlyFormat.GetObjTitle();
} }
// New attribute Description // New attribute Description
else if( FN_UNO_DESCRIPTION == pEntry->nWID ) else if( FN_UNO_DESCRIPTION == pEntry->nWID )
@ -2150,7 +2150,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
SwFlyFrameFormat& rFlyFormat = dynamic_cast<SwFlyFrameFormat&>(*pFormat); SwFlyFrameFormat& rFlyFormat = dynamic_cast<SwFlyFrameFormat&>(*pFormat);
// assure that <SdrObject> instance exists. // assure that <SdrObject> instance exists.
GetOrCreateSdrObject(rFlyFormat); GetOrCreateSdrObject(rFlyFormat);
aAny <<= OUString(rFlyFormat.GetObjDescription()); aAny <<= rFlyFormat.GetObjDescription();
} }
else if(eType == FLYCNTTYPE_GRF && else if(eType == FLYCNTTYPE_GRF &&
(rPropertyName == UNO_NAME_ACTUAL_SIZE)) (rPropertyName == UNO_NAME_ACTUAL_SIZE))
@ -2223,7 +2223,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
aAny <<= aHexCLSID; aAny <<= aHexCLSID;
else if(FN_UNO_STREAM_NAME == pEntry->nWID) else if(FN_UNO_STREAM_NAME == pEntry->nWID)
{ {
aAny <<= OUString(pOleNode->GetOLEObj().GetCurrentPersistName()); aAny <<= pOleNode->GetOLEObj().GetCurrentPersistName();
} }
else if(FN_EMBEDDED_OBJECT == pEntry->nWID) else if(FN_EMBEDDED_OBJECT == pEntry->nWID)
{ {

View File

@ -1321,7 +1321,7 @@ void SwHTMLParser::NewForm( bool bAppend )
uno::Reference< beans::XPropertySet > xFormPropSet( xForm, UNO_QUERY ); uno::Reference< beans::XPropertySet > xFormPropSet( xForm, UNO_QUERY );
Any aTmp; Any aTmp;
aTmp <<= OUString(sName); aTmp <<= sName;
xFormPropSet->setPropertyValue("Name", aTmp ); xFormPropSet->setPropertyValue("Name", aTmp );
if( !aAction.isEmpty() ) if( !aAction.isEmpty() )
@ -1334,7 +1334,7 @@ void SwHTMLParser::NewForm( bool bAppend )
INetURLObject aURLObj( m_aPathToFile ); INetURLObject aURLObj( m_aPathToFile );
aAction = aURLObj.GetPartBeforeLastName(); aAction = aURLObj.GetPartBeforeLastName();
} }
aTmp <<= OUString(aAction); aTmp <<= aAction;
xFormPropSet->setPropertyValue("TargetURL", xFormPropSet->setPropertyValue("TargetURL",
aTmp ); aTmp );
@ -1614,7 +1614,7 @@ void SwHTMLParser::InsertInput()
uno::Reference< beans::XPropertySet > xPropSet( xFComp, UNO_QUERY ); uno::Reference< beans::XPropertySet > xPropSet( xFComp, UNO_QUERY );
Any aTmp; Any aTmp;
aTmp <<= OUString(sName); aTmp <<= sName;
xPropSet->setPropertyValue("Name", aTmp ); xPropSet->setPropertyValue("Name", aTmp );
if( HTML_IT_HIDDEN != eType ) if( HTML_IT_HIDDEN != eType )
@ -2004,7 +2004,7 @@ void SwHTMLParser::NewTextArea()
uno::Reference< beans::XPropertySet > xPropSet( xFComp, UNO_QUERY ); uno::Reference< beans::XPropertySet > xPropSet( xFComp, UNO_QUERY );
Any aTmp; Any aTmp;
aTmp <<= OUString(sName); aTmp <<= sName;
xPropSet->setPropertyValue("Name", aTmp ); xPropSet->setPropertyValue("Name", aTmp );
aTmp <<= true; aTmp <<= true;
@ -2272,7 +2272,7 @@ void SwHTMLParser::NewSelect()
uno::Reference< beans::XPropertySet > xPropSet( xFComp, UNO_QUERY ); uno::Reference< beans::XPropertySet > xPropSet( xFComp, UNO_QUERY );
Any aTmp; Any aTmp;
aTmp <<= OUString(sName); aTmp <<= sName;
xPropSet->setPropertyValue("Name", aTmp ); xPropSet->setPropertyValue("Name", aTmp );
if( nTabIndex >= TABINDEX_MIN && nTabIndex <= TABINDEX_MAX ) if( nTabIndex >= TABINDEX_MIN && nTabIndex <= TABINDEX_MAX )

View File

@ -4704,7 +4704,7 @@ void SwWW8ImplReader::ReadDocVars()
{ {
const OUString &rName = aDocVarStrings[i]; const OUString &rName = aDocVarStrings[i];
uno::Any aValue; uno::Any aValue;
aValue <<= OUString(aDocValueStrings[i]); aValue <<= rName;
try { try {
xUserDefinedProps->addProperty( rName, xUserDefinedProps->addProperty( rName,
beans::PropertyAttribute::REMOVABLE, beans::PropertyAttribute::REMOVABLE,

View File

@ -648,7 +648,7 @@ IMPL_LINK(SwMMResultSaveDialog, SaveOutputHdl_Impl, Button*, pButton, void)
uno::Sequence< beans::PropertyValue > aValues(1); uno::Sequence< beans::PropertyValue > aValues(1);
beans::PropertyValue* pValues = aValues.getArray(); beans::PropertyValue* pValues = aValues.getArray();
pValues[0].Name = "FilterName"; pValues[0].Name = "FilterName";
pValues[0].Value <<= OUString(pSfxFlt->GetFilterName()); pValues[0].Value <<= pSfxFlt->GetFilterName();
uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY); uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY);
sal_uInt32 nErrorCode = ERRCODE_NONE; sal_uInt32 nErrorCode = ERRCODE_NONE;
@ -1079,7 +1079,7 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void)
uno::Sequence< beans::PropertyValue > aValues(1); uno::Sequence< beans::PropertyValue > aValues(1);
beans::PropertyValue* pValues = aValues.getArray(); beans::PropertyValue* pValues = aValues.getArray();
pValues[0].Name = "FilterName"; pValues[0].Name = "FilterName";
pValues[0].Value <<= OUString(pTargetSfxFlt->GetFilterName()); pValues[0].Value <<= pTargetSfxFlt->GetFilterName();
uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY); uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY);
xStore->storeToURL( sTargetTempURL, aValues ); xStore->storeToURL( sTargetTempURL, aValues );
@ -1130,7 +1130,7 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void)
uno::Sequence< beans::PropertyValue > aFilterValues(withFilterOptions ? 2 : 1); uno::Sequence< beans::PropertyValue > aFilterValues(withFilterOptions ? 2 : 1);
beans::PropertyValue* pFilterValues = aFilterValues.getArray(); beans::PropertyValue* pFilterValues = aFilterValues.getArray();
pFilterValues[0].Name = "FilterName"; pFilterValues[0].Name = "FilterName";
pFilterValues[0].Value <<= OUString(pSfxFlt->GetFilterName()); pFilterValues[0].Value <<= pSfxFlt->GetFilterName();
if(withFilterOptions) if(withFilterOptions)
{ {
pFilterValues[1].Name = "FilterOptions"; pFilterValues[1].Name = "FilterOptions";

View File

@ -68,7 +68,7 @@ static void lcl_SetProp( uno::Reference< XPropertySetInfo > & xInfo,
if(xInfo->hasPropertyByName(aPropName)) if(xInfo->hasPropertyByName(aPropName))
{ {
uno::Any aValue; uno::Any aValue;
aValue <<= OUString(rValue); aValue <<= rValue;
xProps->setPropertyValue(aPropName, aValue); xProps->setPropertyValue(aPropName, aValue);
} }
} }
@ -339,7 +339,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
pPropValArr[0].Name = "TokenType"; pPropValArr[0].Name = "TokenType";
pPropValArr[0].Value <<= sTokenType; pPropValArr[0].Value <<= sTokenType;
pPropValArr[1].Name = "CharacterStyleName"; pPropValArr[1].Name = "CharacterStyleName";
pPropValArr[1].Value <<= OUString(aToken.sCharStyleName); pPropValArr[1].Value <<= aToken.sCharStyleName;
if(TOKEN_TAB_STOP == aToken.eTokenType) if(TOKEN_TAB_STOP == aToken.eTokenType)
{ {
pPropValArr[2].Name = "TabStopRightAligned"; pPropValArr[2].Name = "TabStopRightAligned";
@ -355,7 +355,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
else if(TOKEN_TEXT == aToken.eTokenType) else if(TOKEN_TEXT == aToken.eTokenType)
{ {
pPropValArr[2].Name = "Text"; pPropValArr[2].Name = "Text";
pPropValArr[2].Value <<= OUString(aToken.sText); pPropValArr[2].Value <<= aToken.sText;
} }
beans::PropertyValues* pValues = aSequPropVals.getArray(); beans::PropertyValues* pValues = aSequPropVals.getArray();
pValues[nTokenIndex] = aPropVals; pValues[nTokenIndex] = aPropVals;

View File

@ -152,7 +152,7 @@ void SwStdFontConfig::ImplCommit()
if( nProp < DEF_FONT_COUNT ) if( nProp < DEF_FONT_COUNT )
{ {
if(GetDefaultFor(nProp, lcl_LanguageOfType(nProp, eWestern, eCJK, eCTL)) != sDefaultFonts[nProp]) if(GetDefaultFor(nProp, lcl_LanguageOfType(nProp, eWestern, eCJK, eCTL)) != sDefaultFonts[nProp])
pValues[nProp] <<= OUString(sDefaultFonts[nProp]); pValues[nProp] <<= sDefaultFonts[nProp];
} }
else else
{ {

View File

@ -689,7 +689,7 @@ uno::Any SwMailTransferable::getTransferData( const datatransfer::DataFlavor& /*
{ {
uno::Any aRet; uno::Any aRet;
if( m_bIsBody ) if( m_bIsBody )
aRet <<= OUString(m_sBody); aRet <<= m_sBody;
else else
{ {
Sequence<sal_Int8> aData; Sequence<sal_Int8> aData;

View File

@ -125,7 +125,7 @@ void SwDrawFormShell::Execute(SfxRequest &rReq)
OUString sLabel("Label"); OUString sLabel("Label");
if( xPropInfoSet->hasPropertyByName(sLabel) ) if( xPropInfoSet->hasPropertyByName(sLabel) )
{ {
aTmp <<= OUString(rHLinkItem.GetName()); aTmp <<= rHLinkItem.GetName();
xPropSet->setPropertyValue(sLabel, aTmp ); xPropSet->setPropertyValue(sLabel, aTmp );
} }

View File

@ -87,7 +87,7 @@ void SwBaseShell::InsertURLButton(const OUString& rURL, const OUString& rTarget,
uno::Any aTmp; uno::Any aTmp;
aTmp <<= OUString(rText); aTmp <<= rText;
xPropSet->setPropertyValue( "Label", aTmp ); xPropSet->setPropertyValue( "Label", aTmp );
SfxMedium* pMedium = rSh.GetView().GetDocShell()->GetMedium(); SfxMedium* pMedium = rSh.GetView().GetDocShell()->GetMedium();
@ -95,7 +95,7 @@ void SwBaseShell::InsertURLButton(const OUString& rURL, const OUString& rTarget,
if( pMedium ) if( pMedium )
aAbs = pMedium->GetURLObject(); aAbs = pMedium->GetURLObject();
aTmp <<= OUString(URIHelper::SmartRel2Abs(aAbs, rURL)); aTmp <<= URIHelper::SmartRel2Abs(aAbs, rURL);
xPropSet->setPropertyValue( "TargetURL", aTmp ); xPropSet->setPropertyValue( "TargetURL", aTmp );
if( !rTarget.isEmpty() ) if( !rTarget.isEmpty() )

View File

@ -625,10 +625,10 @@ uno::Any SwXAutoTextGroup::getPropertyValue(const OUString& rPropertyName)
switch(pEntry->nWID) switch(pEntry->nWID)
{ {
case WID_GROUP_PATH: case WID_GROUP_PATH:
aAny <<= OUString(pGlosGroup->GetFileName()); aAny <<= pGlosGroup->GetFileName();
break; break;
case WID_GROUP_TITLE: case WID_GROUP_TITLE:
aAny <<= OUString(pGlosGroup->GetName()); aAny <<= pGlosGroup->GetName();
break; break;
} }
return aAny; return aAny;

View File

@ -4064,7 +4064,7 @@ Any SwXLinkNameAccessWrapper::getPropertyValue(const OUString& rPropertyName)
Any aRet; Any aRet;
if( rPropertyName == UNO_LINK_DISPLAY_NAME ) if( rPropertyName == UNO_LINK_DISPLAY_NAME )
{ {
aRet <<= OUString(sLinkDisplayName); aRet <<= sLinkDisplayName;
} }
else if( rPropertyName == UNO_LINK_DISPLAY_BITMAP ) else if( rPropertyName == UNO_LINK_DISPLAY_BITMAP )
{ {
@ -4138,7 +4138,7 @@ Any SwXOutlineTarget::getPropertyValue(const OUString& rPropertyName)
{ {
Any aRet; Any aRet;
if(rPropertyName == UNO_LINK_DISPLAY_NAME) if(rPropertyName == UNO_LINK_DISPLAY_NAME)
aRet <<= OUString(sOutlineText); aRet <<= sOutlineText;
else else
throw UnknownPropertyException(); throw UnknownPropertyException();
return aRet; return aRet;