[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Aug 16 19:44:53 PDT 2011


 sc/source/filter/ftools/fapihelper.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 93868637efadeb4b33b7b1944358b1c83169ab76
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Tue Aug 16 22:45:10 2011 -0400

    Comment why I do this.

diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx
index dba3480..82c720e 100644
--- a/sc/source/filter/ftools/fapihelper.cxx
+++ b/sc/source/filter/ftools/fapihelper.cxx
@@ -171,6 +171,7 @@ ScfPropertySet::~ScfPropertySet()
 {
     Reference<beans::XPropertySetOption> xPropSetOpt(mxPropSet, UNO_QUERY);
     if (xPropSetOpt.is())
+        // Turn the property value change notification back on when finished.
         xPropSetOpt->enableChangeListenerNotification(true);
 }
 
@@ -180,6 +181,8 @@ void ScfPropertySet::Set( Reference< XPropertySet > xPropSet )
     mxMultiPropSet.set( mxPropSet, UNO_QUERY );
     Reference<beans::XPropertySetOption> xPropSetOpt(mxPropSet, UNO_QUERY);
     if (xPropSetOpt.is())
+        // We don't want to broadcast property value changes during import to
+        // improve performance.
         xPropSetOpt->enableChangeListenerNotification(false);
 }
 


More information about the Libreoffice-commits mailing list