diff options
author | Caolán McNamara <cmc@openoffice.org> | 2010-01-23 12:35:22 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2010-01-23 12:35:22 +0000 |
commit | fbf485ce60434bb948d5c00000e6a71063f89886 (patch) | |
tree | 796188cbe699b865053480c3550f80a58754e3da /pyuno/source | |
parent | a2cadf4bc167c9a5ad534af03f7960c6ef477c05 (diff) |
cmcfixes71: #i108597# fix uninit warnings
Diffstat (limited to 'pyuno/source')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 3a93cb91eaf7..3cbde5ef1930 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -449,31 +449,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); } |