summaryrefslogtreecommitdiff
path: root/test/source/sheet
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-25 17:35:42 +0200
committerNoel Grandin <noel@peralex.com>2013-11-04 10:11:08 +0200
commit5285beeaa49f6678b471d472868c305c7d9da5f9 (patch)
treea3dbd28995142ab16b448f28e95821115ef5408f /test/source/sheet
parentaeb41c9b9b7559c6d87bf92807acdc0df9e104cc (diff)
remove redundant calls to OUString constructor in if expression
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
Diffstat (limited to 'test/source/sheet')
-rw-r--r--test/source/sheet/xdatabaserange.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx
index d12d44b3bb83..8b7f1190f13c 100644
--- a/test/source/sheet/xdatabaserange.cxx
+++ b/test/source/sheet/xdatabaserange.cxx
@@ -71,53 +71,53 @@ void XDatabaseRange::testGetSortDescriptor()
beans::PropertyValue xProp = xSortDescr[i];
//std::cout << "Prop " << i << " Name: " << OUString(xProp.Name) << std::endl;
- if (xProp.Name == OUString("IsSortColumns"))
+ if (xProp.Name == "IsSortColumns")
{
sal_Bool bIsSortColumns = sal_True;
xProp.Value >>= bIsSortColumns;
CPPUNIT_ASSERT(bIsSortColumns == sal_True);
}
- else if (xProp.Name == OUString("ContainsHeader"))
+ else if (xProp.Name == "ContainsHeader")
{
sal_Bool bContainsHeader = sal_True;
xProp.Value >>= bContainsHeader;
CPPUNIT_ASSERT(bContainsHeader == sal_True);
}
- else if (xProp.Name == OUString("MaxFieldCount"))
+ else if (xProp.Name == "MaxFieldCount")
{
sal_Int32 nMaxFieldCount = 0;
xProp.Value >>= nMaxFieldCount;
std::cout << "Value: " << nMaxFieldCount << std::endl;
}
- else if (xProp.Name == OUString("SortFields"))
+ else if (xProp.Name == "SortFields")
{
}
- else if (xProp.Name == OUString("BindFormatsToContent"))
+ else if (xProp.Name == "BindFormatsToContent")
{
sal_Bool bBindFormatsToContent = sal_False;
xProp.Value >>= bBindFormatsToContent;
CPPUNIT_ASSERT(bBindFormatsToContent == sal_True);
}
- else if (xProp.Name == OUString("CopyOutputData"))
+ else if (xProp.Name == "CopyOutputData")
{
sal_Bool bCopyOutputData = sal_True;
xProp.Value >>= bCopyOutputData;
CPPUNIT_ASSERT(bCopyOutputData == sal_False);
}
- else if (xProp.Name == OUString("OutputPosition"))
+ else if (xProp.Name == "OutputPosition")
{
}
- else if (xProp.Name == OUString("IsUserListEnabled"))
+ else if (xProp.Name == "IsUserListEnabled")
{
sal_Bool bIsUserListEnabled = sal_True;
xProp.Value >>= bIsUserListEnabled;
CPPUNIT_ASSERT(bIsUserListEnabled == sal_False);
}
- else if (xProp.Name == OUString("UserListIndex"))
+ else if (xProp.Name == "UserListIndex")
{
sal_Int32 nUserListIndex = 1;
xProp.Value >>= nUserListIndex;