summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-01 15:54:08 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-01 20:21:05 -0500
commit9ad6925552b6c6a366bd8a349a3bd78eb2d4bb92 (patch)
treed413906c536518867bde6cedffe2feaf59d16ed0 /sc
parent1f290abba0bb70c1ecf9d168c0d6c8c564d302ec (diff)
We don't really need GetCount().
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/chartlis.hxx1
-rw-r--r--sc/source/core/tool/chartlis.cxx5
-rw-r--r--sc/source/ui/docshell/docsh4.cxx2
3 files changed, 1 insertions, 7 deletions
diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx
index d6bff1b7712f..b08af31f77f0 100644
--- a/sc/inc/chartlis.hxx
+++ b/sc/inc/chartlis.hxx
@@ -186,7 +186,6 @@ public:
const ListenersType& GetListeners() const;
ListenersType& GetListeners();
- size_t GetCount() const;
rtl::OUString GetUniqueName(const rtl::OUString& rPrefix) const;
diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx
index 48974e28cd6a..f8afb8123357 100644
--- a/sc/source/core/tool/chartlis.cxx
+++ b/sc/source/core/tool/chartlis.cxx
@@ -549,11 +549,6 @@ ScChartListenerCollection::ListenersType& ScChartListenerCollection::GetListener
return maListeners;
}
-size_t ScChartListenerCollection::GetCount() const
-{
- return maListeners.size();
-}
-
rtl::OUString ScChartListenerCollection::GetUniqueName(const rtl::OUString& rPrefix) const
{
for (sal_Int32 nNum = 1; nNum < 10000; ++nNum) // arbitrary limit to prevent infinite loop.
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 2760a394123e..40c35f983c5e 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1223,7 +1223,7 @@ void ScDocShell::DoRecalc( bool bApi )
// doppelt gepainted werden.
ScChartListenerCollection* pCharts = aDocument.GetChartListenerCollection();
- if ( pCharts && pCharts->GetCount() )
+ if ( pCharts && pCharts->HasListeners() )
PostPaintGridAll();
else
PostDataChanged();