Kaydet (Commit) 83342319 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Michael Stahl

WaE: Potentially uninitialized local variable

(cherry picked from commit fe8eba5f)

Conflicts:

	cppcanvas/source/mtfrenderer/emfplus.cxx

Change-Id: I497c30dfd951132fe2f7998a158b6c14efe5ebf7
üst ac6ff2f3
...@@ -1334,7 +1334,14 @@ namespace cppcanvas ...@@ -1334,7 +1334,14 @@ namespace cppcanvas
case EmfPlusRecordTypeDrawEllipse: case EmfPlusRecordTypeDrawEllipse:
case EmfPlusRecordTypeFillEllipse: 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 ) if ( type == EmfPlusRecordTypeFillEllipse )
rMF >> brushIndexOrColor; rMF >> brushIndexOrColor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment