[Libreoffice-commits] core.git: sc/source
Stephan Bergmann
sbergman at redhat.com
Fri Nov 29 07:01:21 PST 2013
sc/source/ui/docshell/datastream.cxx | 7 +++----
sc/source/ui/inc/datastream.hxx | 2 +-
sc/source/ui/miscdlgs/datastreamdlg.cxx | 2 +-
3 files changed, 5 insertions(+), 6 deletions(-)
New commits:
commit 99d3733c7f7211d7fdcd8570e33f3cbb8a446526
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 29 16:00:59 2013 +0100
static, not mysterious
Change-Id: Ib080dd7fcbc8abb52f762a8071b0233e970b2691
diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx
index 0df48b6..1d99af2 100644
--- a/sc/source/ui/docshell/datastream.cxx
+++ b/sc/source/ui/docshell/datastream.cxx
@@ -110,11 +110,10 @@ private:
}
-void DataStream::MakeToolbarVisible(ScDocShell *pShell)
+void DataStream::MakeToolbarVisible()
{
- (void) pShell; // Mysterious MSVC 2012 claim pShell is unreferenced...
css::uno::Reference< css::frame::XFrame > xFrame =
- pShell->GetViewData()->GetViewShell()->GetViewFrame()->GetFrame().GetFrameInterface();
+ ScDocShell::GetViewData()->GetViewShell()->GetViewFrame()->GetFrame().GetFrameInterface();
if (!xFrame.is())
return;
@@ -442,7 +441,7 @@ bool DataStream::ImportData()
sfx2::SvBaseLink::UpdateResult DataStream::DataChanged(
const OUString& , const css::uno::Any& )
{
- MakeToolbarVisible(mpScDocShell);
+ MakeToolbarVisible();
StopImport();
bool bStart = true;
if (mnSettings & SCRIPT_STREAM && !mxReaderThread.is() &&
diff --git a/sc/source/ui/inc/datastream.hxx b/sc/source/ui/inc/datastream.hxx
index b1962de..6eb1e7d 100644
--- a/sc/source/ui/inc/datastream.hxx
+++ b/sc/source/ui/inc/datastream.hxx
@@ -39,7 +39,7 @@ public:
enum MoveEnum { NO_MOVE, RANGE_DOWN, MOVE_DOWN, MOVE_UP };
enum { SCRIPT_STREAM = 1, VALUES_IN_LINE = 2 };
- static void MakeToolbarVisible(ScDocShell *pShell);
+ static void MakeToolbarVisible();
static DataStream* Set(ScDocShell *pShell, const OUString& rURL, const OUString& rRange,
sal_Int32 nLimit, const OUString& rMove, sal_uInt32 nSettings);
diff --git a/sc/source/ui/miscdlgs/datastreamdlg.cxx b/sc/source/ui/miscdlgs/datastreamdlg.cxx
index cbfd46b..405c7c0 100644
--- a/sc/source/ui/miscdlgs/datastreamdlg.cxx
+++ b/sc/source/ui/miscdlgs/datastreamdlg.cxx
@@ -127,7 +127,7 @@ void DataStreamDlg::StartStream(DataStream *pStream)
? OUString("RANGE_DOWN") : OUString("MOVE_DOWN")
, nSettings
);
- DataStream::MakeToolbarVisible( mpDocShell );
+ DataStream::MakeToolbarVisible();
pStream->StartImport();
}
More information about the Libreoffice-commits
mailing list