summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2013-03-19 10:43:45 +0200
committerTor Lillqvist <tlillqvist@suse.com>2013-03-19 10:44:25 +0200
commitfe8eba5faa59ddf9ee82f3eb009daac72a0ec846 (patch)
tree9db845355b545539e99e89413298e89e42e0ee67
parentf98c6043fcbecd1b0f22d2a4624e19369b2fa8fa (diff)
WaE: Potentially uninitialized local variable
Change-Id: I497c30dfd951132fe2f7998a158b6c14efe5ebf7
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 011a204a1b33..3f787e1e13d0 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -1337,7 +1337,14 @@ namespace cppcanvas
case EmfPlusRecordTypeDrawEllipse:
case EmfPlusRecordTypeFillEllipse:
{
- sal_uInt32 brushIndexOrColor;
+ // Intentionally very bogus initial value
+ // to avoid MSVC complaining about
+ // potentially uninitialized local
+ // variable. As long as the code stays as
+ // intended, this variable will be
+ // assigned a (real) value in the case
+ // when it is later used.
+ sal_uInt32 brushIndexOrColor = 1234567;
if ( type == EmfPlusRecordTypeFillEllipse )
rMF >> brushIndexOrColor;