summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/scuiautofmt.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-06 21:50:40 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-06 21:57:44 -0500
commit9abbf7c181467e665e4b8da3561a31086b65ed08 (patch)
treeb1bc532d855ffc2dee3fbbfbd373aaa7207c54a4 /sc/source/ui/miscdlgs/scuiautofmt.cxx
parent9ccaa4b1468527bbec12d7e0fccf4ea443478f50 (diff)
The usual bool & string conversion.
Diffstat (limited to 'sc/source/ui/miscdlgs/scuiautofmt.cxx')
-rw-r--r--sc/source/ui/miscdlgs/scuiautofmt.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/sc/source/ui/miscdlgs/scuiautofmt.cxx b/sc/source/ui/miscdlgs/scuiautofmt.cxx
index 9466a4b53b81..8f8ef237ffb4 100644
--- a/sc/source/ui/miscdlgs/scuiautofmt.cxx
+++ b/sc/source/ui/miscdlgs/scuiautofmt.cxx
@@ -149,7 +149,7 @@ void ScAutoFormatDlg::Init()
for ( sal_uInt16 i = 0; i < nCount; i++ )
{
- ((*pFormat)[i])->GetName( aEntry );
+ aEntry = ((*pFormat)[i])->GetName();
aLbFormat.InsertEntry( aEntry );
}
@@ -379,7 +379,7 @@ IMPL_LINK( ScAutoFormatDlg, RenameHdl, void *, EMPTYARG )
{
for( n = 0; n < pFormat->GetCount(); ++n )
{
- (*pFormat)[n]->GetName(aEntry);
+ aEntry = (*pFormat)[n]->GetName();
if (aFormatName.equals(aEntry))
break;
}
@@ -405,7 +405,7 @@ IMPL_LINK( ScAutoFormatDlg, RenameHdl, void *, EMPTYARG )
aLbFormat.Clear();
for ( sal_uInt16 i = 0; i < nCount; i++ )
{
- ((*pFormat)[i])->GetName( aEntry );
+ aEntry = ((*pFormat)[i])->GetName();
aLbFormat.InsertEntry( aEntry );
}
@@ -465,13 +465,9 @@ IMPL_LINK( ScAutoFormatDlg, SelFmtHdl, void *, EMPTYARG )
//------------------------------------------------------------------------
-String ScAutoFormatDlg::GetCurrFormatName()
+rtl::OUString ScAutoFormatDlg::GetCurrFormatName()
{
- String aResult;
-
- ((*pFormat)[nIndex])->GetName( aResult );
-
- return aResult;
+ return ((*pFormat)[nIndex])->GetName();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */