diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:34:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:34:30 +0100 |
commit | f508637ae374267be91ae5a5a1c5581658f4005b (patch) | |
tree | 81f6322463bfdc26aab1baa565c923eb328d5cce /basctl | |
parent | b5a096bcd355e7cad708fbb9afe8421064f8acc5 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ica41a359a75e2e7ad0402cb52cc6f2107f4fa002
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/basidesh.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 4 | ||||
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 9f98b8d40a1d..a93159b3705a 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -712,7 +712,7 @@ void EditorWindow::HandleAutoCloseParen() if( aLine.getLength() > 0 && aLine[aSel.GetEnd().GetIndex()-1] != '(' ) { - GetEditView()->InsertText(OUString(")")); + GetEditView()->InsertText(")"); //leave the cursor on it's place: inside the parenthesis TextPaM aEnd(nLine, aSel.GetEnd().GetIndex()); GetEditView()->SetSelection( TextSelection( aEnd, aEnd ) ); @@ -733,7 +733,7 @@ void EditorWindow::HandleAutoCloseDoubleQuotes() if( aLine.getLength() > 0 && !aLine.endsWith("\"") && (aPortions.back().tokenType != TT_STRING) ) { - GetEditView()->InsertText(OUString("\"")); + GetEditView()->InsertText("\""); //leave the cursor on it's place: inside the two double quotes TextPaM aEnd(nLine, aSel.GetEnd().GetIndex()); GetEditView()->SetSelection( TextSelection( aEnd, aEnd ) ); diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index 5bcb61a8d365..0fe7c76e53e3 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -174,7 +174,7 @@ void Shell::Init() GetExtraData()->ShellInCriticalSection() = true; - SetName( OUString( "BasicIDE" ) ); + SetName( "BasicIDE" ); SetHelpId( SVX_INTERFACE_BASIDE_VIEWSH ); LibBoxControl::RegisterControl( SID_BASICIDE_LIBSELECTOR ); diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 7b4f0fb96c4c..ced2c307b423 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1428,7 +1428,7 @@ void LibPage::SetCurLib() ImpInsertLibEntry( aLibName, i ); } - SvTreeListEntry* pEntry_ = m_pLibBox->FindEntry( OUString( "Standard" ) ); + SvTreeListEntry* pEntry_ = m_pLibBox->FindEntry( "Standard" ); if ( !pEntry_ ) pEntry_ = m_pLibBox->GetEntry( 0 ); m_pLibBox->SetCurEntry( pEntry_ ); diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index a9cfdb382609..b49bee77f031 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -206,7 +206,7 @@ DlgEditor::DlgEditor ( SdrLayerAdmin& rAdmin = pDlgEdModel->GetLayerAdmin(); rAdmin.NewLayer( rAdmin.GetControlLayerName() ); - rAdmin.NewLayer( OUString( "HiddenLayer" ) ); + rAdmin.NewLayer( "HiddenLayer" ); pDlgEdModel->InsertPage(pDlgEdPage); @@ -227,7 +227,7 @@ DlgEditor::DlgEditor ( pDlgEdPage->SetSize( rWindow.PixelToLogic( Size(DLGED_PAGE_WIDTH_MIN, DLGED_PAGE_HEIGHT_MIN) ) ); pDlgEdView->ShowSdrPage(pDlgEdView->GetModel()->GetPage(0)); - pDlgEdView->SetLayerVisible( OUString( "HiddenLayer" ), false ); + pDlgEdView->SetLayerVisible( "HiddenLayer", false ); pDlgEdView->SetMoveSnapOnlyTopLeft(true); pDlgEdView->SetWorkArea( Rectangle( Point( 0, 0 ), pDlgEdPage->GetSize() ) ); diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index c348536cd5b0..37c8037a1fc9 100644 --- a/basctl/source/dlged/dlgedobj.cxx +++ b/basctl/source/dlged/dlgedobj.cxx @@ -517,7 +517,7 @@ void DlgEdObj::UpdateStep() sal_Int32 nStep = GetStep(); SdrLayerAdmin& rLayerAdmin = GetModel()->GetLayerAdmin(); - SdrLayerID nHiddenLayerId = rLayerAdmin.GetLayerID( OUString( "HiddenLayer" ), false ); + SdrLayerID nHiddenLayerId = rLayerAdmin.GetLayerID( "HiddenLayer", false ); SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID( rLayerAdmin.GetControlLayerName(), false ); if( nCurStep ) |