summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.cxx6
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx2
-rw-r--r--sc/source/ui/unoobj/servuno.cxx2
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx4
4 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx
index 4efb484410aa..0a2ff0debffc 100644
--- a/sc/source/ui/unoobj/cellvaluebinding.cxx
+++ b/sc/source/ui/unoobj/cellvaluebinding.cxx
@@ -254,7 +254,7 @@ namespace calc
if ( xProp.is() )
{
CellContentType eResultType;
- if ( (xProp->getPropertyValue(OUString( "FormulaResultType" ) ) >>= eResultType) && eResultType == CellContentType_VALUE )
+ if ( (xProp->getPropertyValue("FormulaResultType") >>= eResultType) && eResultType == CellContentType_VALUE )
bHasValue = sal_True;
}
}
@@ -417,10 +417,10 @@ namespace calc
if ( xOldFormat.is() )
{
// use the locale of the existing format
- xOldFormat->getPropertyValue( OUString( "Locale" ) ) >>= aLocale;
+ xOldFormat->getPropertyValue("Locale") >>= aLocale;
sal_Int16 nOldType = ::comphelper::getINT16(
- xOldFormat->getPropertyValue( OUString( "Type" ) ) );
+ xOldFormat->getPropertyValue("Type") );
if ( nOldType & NumberFormat::LOGICAL )
bWasBoolean = sal_True;
}
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 635fa1af9713..81e4953c2bcb 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1802,7 +1802,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL ScChart2DataProvider::detectArgum
{
Reference< beans::XPropertySet > xSeqProp( xLS->getValues(), uno::UNO_QUERY );
OUString aRole;
- if( xSeqProp.is() && (xSeqProp->getPropertyValue(OUString("Role")) >>= aRole) &&
+ if( xSeqProp.is() && (xSeqProp->getPropertyValue("Role") >>= aRole) &&
aRole.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("categories")) )
bThisIsCategories = bHasCategories = true;
}
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index 31038d8c41e7..2fa6324264c0 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -85,7 +85,7 @@ public:
{
ScDocument* pDoc = mpDocShell->GetDocument();
if ( !pDoc )
- throw uno::RuntimeException( OUString(""), uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("", uno::Reference< uno::XInterface >() );
uno::Sequence< uno::Any > aArgs(2);
// access the application object ( parent for workbook )
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index fe9a594a8534..8c71f3f74112 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -278,7 +278,7 @@ static sal_Bool lcl_GetCaptionPoint( uno::Reference< drawing::XShape >& xShape,
uno::Reference < beans::XPropertySet > xShapeProp (xShape, uno::UNO_QUERY);
if (xShapeProp.is())
{
- xShapeProp->getPropertyValue( OUString( "CaptionPoint" ) ) >>= rCaptionPoint;
+ xShapeProp->getPropertyValue("CaptionPoint") >>= rCaptionPoint;
bReturn = sal_True;
}
}
@@ -446,7 +446,7 @@ void SAL_CALL ScShapeObj::setPropertyValue(
}
}
else
- throw lang::IllegalArgumentException(OUString("only XCell or XSpreadsheet objects allowed"), static_cast<cppu::OWeakObject*>(this), 0);
+ throw lang::IllegalArgumentException("only XCell or XSpreadsheet objects allowed", static_cast<cppu::OWeakObject*>(this), 0);
}
else if ( aNameString.EqualsAscii( SC_UNONAME_IMAGEMAP ) )
{