summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/pfiltdlg.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-05-10 15:50:44 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-05-10 15:51:53 -0400
commit8f8df657b92005d3212345dbd3d61ae230f44476 (patch)
treedf8322626ac8d310d3768e4782b2e17746a50926 /sc/source/ui/dbgui/pfiltdlg.cxx
parente667d428ad758b6f165b889c71ef20f619b0c9f3 (diff)
More cleanups of ScDBData.
String to rtl::OUString, tabs to whitespaces etc.
Diffstat (limited to 'sc/source/ui/dbgui/pfiltdlg.cxx')
-rw-r--r--sc/source/ui/dbgui/pfiltdlg.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/dbgui/pfiltdlg.cxx b/sc/source/ui/dbgui/pfiltdlg.cxx
index ab96a0348a74..ceeccebae76d 100644
--- a/sc/source/ui/dbgui/pfiltdlg.cxx
+++ b/sc/source/ui/dbgui/pfiltdlg.cxx
@@ -174,8 +174,7 @@ void ScPivotFilterDlg::Init( const SfxItemSet& rArgSet )
theQueryData.nRow2,
nSrcTab ) );
ScDBCollection* pDBColl = pDoc->GetDBCollection();
- String theDbArea;
- String theDbName = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(STR_DB_LOCAL_NONAME));
+ ::rtl::OUString theDbName = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(STR_DB_LOCAL_NONAME));
/*
* Ueberpruefen, ob es sich bei dem uebergebenen
@@ -192,13 +191,14 @@ void ScPivotFilterDlg::Init( const SfxItemSet& rArgSet )
rStart.Col(), rStart.Row(),
rEnd.Col(), rEnd.Row() );
if ( pDBData )
- pDBData->GetName( theDbName );
+ theDbName = pDBData->GetName();
}
- theDbArea.AppendAscii(RTL_CONSTASCII_STRINGPARAM(" ("));
- theDbArea += theDbName;
- theDbArea += ')';
- aFtDbArea.SetText( theDbArea );
+ ::rtl::OUStringBuffer aBuf;
+ aBuf.appendAscii(" (");
+ aBuf.append(theDbName);
+ aBuf.append(sal_Unicode(')'));
+ aFtDbArea.SetText(aBuf.makeStringAndClear());
}
else
{