[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Fri Aug 12 06:25:01 PDT 2011
writerfilter/source/dmapper/ModelEventListener.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d4ad67379eda381b43f6c636572e0064cb3527fd
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Fri Aug 12 15:24:42 2011 +0200
WaE: initialise these, older gcc does not recognize we always do so later
diff --git a/writerfilter/source/dmapper/ModelEventListener.cxx b/writerfilter/source/dmapper/ModelEventListener.cxx
index e86aa01..a5b2ca5 100644
--- a/writerfilter/source/dmapper/ModelEventListener.cxx
+++ b/writerfilter/source/dmapper/ModelEventListener.cxx
@@ -83,9 +83,9 @@ void ModelEventListener::notifyEvent( const document::EventObject& rEvent ) thro
while(xEnumeration->hasMoreElements())
{
uno::Reference<beans::XPropertySet> xPropertySet(xEnumeration->nextElement(), uno::UNO_QUERY);
- sal_Int16 nSource;
+ sal_Int16 nSource = 0;
xPropertySet->getPropertyValue(rPropNameSupplier.GetName(PROP_REFERENCE_FIELD_SOURCE)) >>= nSource;
- sal_Int16 nPart;
+ sal_Int16 nPart = 0;
xPropertySet->getPropertyValue(rPropNameSupplier.GetName(PROP_REFERENCE_FIELD_PART)) >>= nPart;
if (nSource == text::ReferenceFieldSource::BOOKMARK && nPart == text::ReferenceFieldPart::PAGE)
++nIndex;
More information about the Libreoffice-commits
mailing list