summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-08-15 09:54:58 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-09-29 06:30:41 +0100
commit6a7051c30b57ba86f8847587f7f74cc93307288b (patch)
treec5b1a2f774a79a1a49eb57594daec7c5cbbb7e6e
parent79b1d94c66dd5166276e88a7625c6ee5ea03cfdf (diff)
ScViewData::GetActiveWin can be const.
We need to reuse this in other const methods, so lets make it const too. Change-Id: I6d96fa2370081d515f8629998d8a1e218bec643a
-rw-r--r--sc/source/ui/inc/viewdata.hxx2
-rw-r--r--sc/source/ui/view/viewdata.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index fff44d99fbfe..683e985edc2f 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -241,7 +241,7 @@ public:
const ScMarkData& GetMarkData() const;
vcl::Window* GetDialogParent(); // forwarded from tabvwsh
- ScGridWindow* GetActiveWin(); // from View
+ ScGridWindow* GetActiveWin() const; // from View
ScDrawView* GetScDrawView(); // from View
bool IsMinimized(); // from View
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 27029663cfd1..da88b3b7b3ce 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2112,7 +2112,7 @@ vcl::Window* ScViewData::GetDialogParent()
return pViewShell->GetDialogParent();
}
-ScGridWindow* ScViewData::GetActiveWin()
+ScGridWindow* ScViewData::GetActiveWin() const
{
OSL_ENSURE( pView, "GetActiveWin() ohne View" );
return pView->GetActiveWin();