[Libreoffice-commits] core.git: basctl/source
Julien Nabet
serval2412 at yahoo.fr
Tue Oct 6 13:35:04 PDT 2015
basctl/source/basicide/baside2.cxx | 4 ++--
basctl/source/basicide/baside3.cxx | 4 ++--
basctl/source/basicide/moduldl2.cxx | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 912268d49c1d9ae7cbec63673ee7ca40f15c0451
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Oct 6 21:12:05 2015 +0200
Prefer getSelectedFiles to getFiles (basctl)
Change-Id: I09cdad8770eba515c36220fbfb355220c9fa3bef
Reviewed-on: https://gerrit.libreoffice.org/19217
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index e4f0720..98b1834 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -419,7 +419,7 @@ bool ModulWindow::LoadBasic()
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
SfxMedium aMedium( aCurPath, StreamMode::READ | StreamMode::SHARE_DENYWRITE | StreamMode::NOCREATE );
SvStream* pStream = aMedium.GetInStream();
@@ -470,7 +470,7 @@ bool ModulWindow::SaveBasicSource()
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
SfxMedium aMedium( aCurPath, StreamMode::WRITE | StreamMode::SHARE_DENYWRITE | StreamMode::TRUNC );
SvStream* pStream = aMedium.GetOutStream();
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index fcc2e37..2eafe91 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -699,7 +699,7 @@ bool DialogWindow::SaveDialog()
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
// export dialog model to xml
@@ -944,7 +944,7 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
OUString aBasePath;
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index c61f85f..5d5cecd 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -786,7 +786,7 @@ void LibPage::InsertLib()
Reference< script::XLibraryContainer2 > xDlgLibContImport;
// file URLs
- Sequence< OUString > aFiles = xFP->getFiles();
+ Sequence< OUString > aFiles = xFP->getSelectedFiles();
INetURLObject aURLObj( aFiles[0] );
INetURLObject aModURLObj( aURLObj );
INetURLObject aDlgURLObj( aURLObj );
@@ -1223,7 +1223,7 @@ void LibPage::ExportAsPackage( const OUString& aLibName )
{
GetExtraData()->SetAddLibPath(xFP->getDisplayDirectory());
- Sequence< OUString > aFiles = xFP->getFiles();
+ Sequence< OUString > aFiles = xFP->getSelectedFiles();
INetURLObject aURL( aFiles[0] );
if( aURL.getExtension().isEmpty() )
aURL.setExtension( "oxt" );
More information about the Libreoffice-commits
mailing list