summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io/test/stm/datatest.cxx6
-rwxr-xr-xoffapi/com/sun/star/document/XCodeNameQuery.idl56
-rw-r--r--offapi/com/sun/star/document/makefile.mk4
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx10
-rw-r--r--stoc/test/testintrosp.cxx16
5 files changed, 75 insertions, 17 deletions
diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx
index 6aba52896..eaff760dc 100644
--- a/io/test/stm/datatest.cxx
+++ b/io/test/stm/datatest.cxx
@@ -850,8 +850,8 @@ sal_Bool compareMyPropertySet( Reference< XPropertySet > &r1 , Reference < XProp
b = b && ( r1->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) ==
r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) );
if( ! b ){
- float f1;
- float f2;
+ float f1(0.0);
+ float f2(0.0);
r1->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) >>= f1;
r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) >>= f2;
fprintf( stderr, "compareMyPropertySet: %f %f 3\n",f1,f2 );
@@ -861,7 +861,7 @@ sal_Bool compareMyPropertySet( Reference< XPropertySet > &r1 , Reference < XProp
r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("double" ))) );
if( ! b ) fprintf( stderr, "compareMyPropertySet: 4\n" );
- sal_Bool b1 ,b2;
+ sal_Bool b1(sal_False), b2(sal_False);
Any a =r1->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("bool")) );
a >>= b1;
a = r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("bool")) );
diff --git a/offapi/com/sun/star/document/XCodeNameQuery.idl b/offapi/com/sun/star/document/XCodeNameQuery.idl
new file mode 100755
index 000000000..948c86deb
--- /dev/null
+++ b/offapi/com/sun/star/document/XCodeNameQuery.idl
@@ -0,0 +1,56 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: XDocumentPropertiesSupplier.idl,v $
+ *
+ * $Revision$
+ *
+ * last change: $Author$ $Date$
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+#ifndef __com_sun_star_document_XCodeNameQuery_idl__
+#define __com_sun_star_document_XCodeNameQuery_idl__
+
+#ifndef __com_sun_star_uno_XInterface_idl__
+#include <com/sun/star/uno/XInterface.idl>
+#endif
+
+//=============================================================================
+
+module com { module sun { module star { module document {
+//=============================================================================
+interface XCodeNameQuery
+{
+ //-------------------------------------------------------------------------
+ string getCodeNameForObject( [in] com::sun::star::uno::XInterface aObj );
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/document/makefile.mk b/offapi/com/sun/star/document/makefile.mk
index 5056e0855..2d9b6211a 100644
--- a/offapi/com/sun/star/document/makefile.mk
+++ b/offapi/com/sun/star/document/makefile.mk
@@ -112,7 +112,9 @@ IDLFILES=\
LinkUpdateModes.idl\
XDocumentRevisionListPersistence.idl\
DocumentRevisionListPersistence.idl \
- XDocumentLanguages.idl
+ XDocumentLanguages.idl \
+ XCodeNameQuery.idl
+
# ------------------------------------------------------------------
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index 9fb1e1c03..a62a405a8 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -446,31 +446,31 @@ PyRef Runtime::any2PyObject (const Any &a ) const
}
case typelib_TypeClass_UNSIGNED_LONG:
{
- sal_uInt32 l;
+ sal_uInt32 l = 0;
a >>= l;
return PyRef( PyLong_FromUnsignedLong (l), SAL_NO_ACQUIRE );
}
case typelib_TypeClass_HYPER:
{
- sal_Int64 l;
+ sal_Int64 l = 0;
a >>= l;
return PyRef( PyLong_FromLongLong (l), SAL_NO_ACQUIRE);
}
case typelib_TypeClass_UNSIGNED_HYPER:
{
- sal_uInt64 l;
+ sal_uInt64 l = 0;
a >>= l;
return PyRef( PyLong_FromUnsignedLongLong (l), SAL_NO_ACQUIRE);
}
case typelib_TypeClass_FLOAT:
{
- float f;
+ float f = 0.0;
a >>= f;
return PyRef(PyFloat_FromDouble (f), SAL_NO_ACQUIRE);
}
case typelib_TypeClass_DOUBLE:
{
- double d;
+ double d = 0.0;
a >>= d;
return PyRef( PyFloat_FromDouble (d), SAL_NO_ACQUIRE);
}
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index 6ba1ed4f6..cbf992bc0 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -166,7 +166,7 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference<
}
case TypeClass_FLOAT:
{
- float f;
+ float f(0.0);
aValue >>= f;
snprintf( pBuffer, sizeof( pBuffer ), "%f", f );
aRetStr = OUString( pBuffer, strlen( pBuffer ), RTL_TEXTENCODING_ASCII_US );
@@ -174,7 +174,7 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference<
}
case TypeClass_DOUBLE:
{
- double d;
+ double d(0.0);
aValue >>= d;
snprintf( pBuffer, sizeof( pBuffer ), "%f", d );
aRetStr = OUString( pBuffer, strlen( pBuffer ), RTL_TEXTENCODING_ASCII_US );
@@ -182,21 +182,21 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference<
}
case TypeClass_BYTE:
{
- sal_Int8 n;
+ sal_Int8 n(0);
aValue >>= n;
aRetStr = OUString::valueOf( (sal_Int32) n );
break;
}
case TypeClass_SHORT:
{
- sal_Int16 n;
+ sal_Int16 n(0);
aValue >>= n;
aRetStr = OUString::valueOf( (sal_Int32) n );
break;
}
case TypeClass_LONG:
{
- sal_Int32 n;
+ sal_Int32 n(0);
aValue >>= n;
aRetStr = OUString::valueOf( n );
break;
@@ -1305,21 +1305,21 @@ static sal_Bool test_introsp( Reference< XMultiServiceFactory > xMgr,
}
case TypeClass_DOUBLE:
{
- double d;
+ double d(0.0);
aPropVal >>= d;
aNewVal <<= d + 1.0;
break;
}
case TypeClass_SHORT:
{
- sal_Int16 n;
+ sal_Int16 n(0);
aPropVal >>= n;
aNewVal <<= sal_Int16( n + 1 );
break;
}
case TypeClass_LONG:
{
- sal_Int32 n;
+ sal_Int32 n(0);
aPropVal >>= n;
aNewVal <<= sal_Int32( n + 1 );
break;