summaryrefslogtreecommitdiff
path: root/extensions/source/bibliography/toolbar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/bibliography/toolbar.cxx')
-rw-r--r--extensions/source/bibliography/toolbar.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 0c3c90b1b6f9..9b5139c72ee0 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -107,7 +107,7 @@ void BibTBListBoxListener::statusChanged(const ::com::sun::star::frame::FeatureS
OUString aEntry;
for( sal_uInt32 i=0; i<nCount; i++ )
{
- aEntry = String(pStringArray[i]);
+ aEntry = pStringArray[i];
pToolBar->InsertSourceEntry(aEntry);
}
pToolBar->UpdateSourceList(sal_True);
@@ -144,7 +144,7 @@ void BibTBQueryMenuListener::statusChanged(const frame::FeatureStateEvent& rEvt)
sal_uInt32 nCount = pStringSeq->getLength();
for( sal_uInt32 i=0; i<nCount; i++ )
{
- sal_uInt16 nID=pToolBar->InsertFilterItem(String(pStringArray[i]));
+ sal_uInt16 nID = pToolBar->InsertFilterItem(pStringArray[i]);
if(pStringArray[i]==rEvt.FeatureDescriptor)
{
pToolBar->SelectFilterItem(nID);
@@ -173,7 +173,7 @@ void BibTBEditListener::statusChanged(const frame::FeatureStateEvent& rEvt)throw
uno::Any aState=rEvt.State;
if(aState.getValueType()==::getCppuType((const OUString*)0))
{
- String aStr = String(*(OUString*) aState.getValue());
+ OUString aStr = *(OUString*) aState.getValue();
pToolBar->SetQueryString(aStr);
}
}
@@ -468,7 +468,7 @@ IMPL_LINK( BibToolBar, SendSelHdl, Timer*,/*pT*/)
Sequence<PropertyValue> aPropVal(1);
PropertyValue* pPropertyVal = (PropertyValue*)aPropVal.getConstArray();
pPropertyVal[0].Name = "DataSourceName";
- String aEntry( MnemonicGenerator::EraseAllMnemonicChars( aLBSource.GetSelectEntry() ) );
+ OUString aEntry( MnemonicGenerator::EraseAllMnemonicChars( aLBSource.GetSelectEntry() ) );
OUString aSelection = aEntry;
pPropertyVal[0].Value <<= aSelection;
SendDispatch(TBC_LB_SOURCE,aPropVal);