[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Sat Jan 15 09:21:00 PST 2011


 sc/source/core/data/dpobject.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 3ac7ee249e260aa3eeba1b48f8df7b267b74f3fc
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Sat Jan 15 12:20:38 2011 -0500

    This is the right way to go about this.

diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index abb22d2..b509008 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -2646,10 +2646,8 @@ void ScDPCollection::FreeTable(ScDPObject* pDPObj)
     if (maTables.size() == 1)
     {
         if (&maTables.back() == pDPObj)
-        {
             maTables.clear();
-            return;
-        }
+        return;
     }
 #endif
     TablesType::iterator itr = maTables.begin(), itrEnd = maTables.end();


More information about the Libreoffice-commits mailing list