diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-04 13:33:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-04 13:31:01 +0100 |
commit | 4a1e9a911e62f0421b7ed67603091d49d30f7b4b (patch) | |
tree | 5ef6753bbc1b9f46566db451b8fe3ecef704c34c /sc/source/ui/view | |
parent | b20ab49eeb703c755f3ac51ca12214fb4a2b6f63 (diff) |
use more OUStringLiteral in sc
Change-Id: I6d9547bd15fa255253e1309fc3f83b4f0ed6491e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126349
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/tabvwshf.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index ba800ef75234..3890373a10f1 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -387,20 +387,20 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) OUString aErrMsg ( ScResId( STR_INVALIDTABNAME ) ); OUString aName; OUString aDlgTitle; - const char* pHelpId = nullptr; + OString sHelpId; switch ( nSlot ) { case FID_TAB_APPEND: aDlgTitle = ScResId(SCSTR_APDTABLE); rDoc.CreateValidTabName( aName ); - pHelpId = HID_SC_APPEND_NAME; + sHelpId = HID_SC_APPEND_NAME; break; case FID_TAB_RENAME: aDlgTitle = ScResId(SCSTR_RENAMETAB); rDoc.GetName( rViewData.GetTabNo(), aName ); - pHelpId = HID_SC_RENAME_NAME; + sHelpId = HID_SC_RENAME_NAME; break; } @@ -409,7 +409,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) ScopedVclPtr<AbstractScStringInputDlg> pDlg(pFact->CreateScStringInputDlg( GetFrameWeld(), aDlgTitle, ScResId(SCSTR_NAME), aName, GetStaticInterface()->GetSlot(nSlot)->GetCommand(), - pHelpId)); + sHelpId)); while ( !bDone && nRet == RET_OK ) |