diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 08:38:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 10:49:24 +0200 |
commit | 1b26a4eb4ba99cb4a47da83c4e6419f2065f9d17 (patch) | |
tree | 8839078d7cfc754fe60844b954c8eba9486d7238 /basctl/source/basicide/baside3.cxx | |
parent | aae44c09d33611fc9e9b9a835026f04a7ff56025 (diff) |
loplugin:unusedmethods unused return value in basctl
Change-Id: I23590020acbb9a6760edd755affa121a572aaea5
Diffstat (limited to 'basctl/source/basicide/baside3.cxx')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index 09e3c873dcd3..9a6cccb88ef6 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -675,10 +675,8 @@ void DialogWindow::UpdateBrowser() rLayout.UpdatePropertyBrowser(); } -bool DialogWindow::SaveDialog() +void DialogWindow::SaveDialog() { - bool bDone = false; - Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() ); Reference < XFilePicker3 > xFP = FilePicker::createWithMode(xContext, TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD); @@ -733,7 +731,6 @@ bool DialogWindow::SaveDialog() if (! nRead) break; } - bDone = true; // With resource? Reference< beans::XPropertySet > xDialogModelPropSet( xDialogModel, UNO_QUERY ); @@ -832,8 +829,6 @@ bool DialogWindow::SaveDialog() else ScopedVclPtrInstance<MessageDialog>::Create(this, IDE_RESSTR(RID_STR_COULDNTWRITE))->Execute(); } - - return bDone; } std::vector< lang::Locale > implGetLanguagesOnlyContainedInFirstSeq @@ -1211,11 +1206,11 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script } -bool DialogWindow::ImportDialog() +void DialogWindow::ImportDialog() { const ScriptDocument& rDocument = GetDocument(); OUString aLibName = GetLibName(); - return implImportDialog( this, aCurPath, rDocument, aLibName ); + implImportDialog( this, aCurPath, rDocument, aLibName ); } DlgEdModel& DialogWindow::GetModel() const |