diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-26 19:33:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-26 19:34:42 -0400 |
commit | 69841530937c5a110bd37fe7c0c600a19551ed07 (patch) | |
tree | c0d8ca5e4ca5c0f8c8e81f0a7918b09c2b4f36bc /sc/source/ui/unoobj/servuno.cxx | |
parent | f952331f0cf11f624d1df7c1c5a7468c16ffdc82 (diff) |
String to rtl::OUString.
Diffstat (limited to 'sc/source/ui/unoobj/servuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index ba27fc889450..f4605cc85d9c 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -126,16 +126,16 @@ public: maCachedObject = maWorkbook; else { - String sCodeName; + rtl::OUString sCodeName; SCTAB nCount = pDoc->GetTableCount(); for( SCTAB i = 0; i < nCount; i++ ) { pDoc->GetCodeName( i, sCodeName ); // aName ( sName ) is generated from the stream name which can be different ( case-wise ) // from the code name - if( sCodeName.EqualsIgnoreCaseAscii( sName ) ) + if( String(sCodeName).EqualsIgnoreCaseAscii( sName ) ) { - String sSheetName; + rtl::OUString sSheetName; if( pDoc->GetName( i, sSheetName ) ) { uno::Reference< frame::XModel > xModel( mpDocShell->GetModel() ); @@ -175,7 +175,7 @@ public: SCTAB nCount = pDoc->GetTableCount(); uno::Sequence< rtl::OUString > aNames( nCount + 1 ); SCTAB index = 0; - String sCodeName; + rtl::OUString sCodeName; for( ; index < nCount; ++index ) { pDoc->GetCodeName( index, sCodeName ); @@ -222,7 +222,7 @@ public: bMatched = ( xControl == xIf ); if ( bMatched ) { - String sName; + rtl::OUString sName; mrDocShell.GetDocument()->GetCodeName( static_cast<SCTAB>( index ), sName ); sCodeName = sName; } @@ -253,7 +253,7 @@ public: uno::Reference<container::XIndexAccess> xFormControls(xFormIndex->getByIndex(0), uno::UNO_QUERY_THROW); if (xFormControls == xContainer) { - String aName; + rtl::OUString aName; if (mrDocShell.GetDocument()->GetCodeName(static_cast<SCTAB>(i), aName)) return aName; } |