From cc74d3ce73583d035b6793c485d0af95c12f7e61 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 16 Feb 2014 17:12:05 +0000 Subject: fix debug=2 build Change-Id: Id7c6db5c6cbefef427d9c2cc4bd210811b5a7991 --- cppcanvas/source/mtfrenderer/emfplus.cxx | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 1978f3ed6a6f..95d8d34b6d29 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -120,22 +120,6 @@ namespace cppcanvas { namespace internal { - -#if OSL_DEBUG_LEVEL > 1 - void dumpWords (SvStream& s, int i) - { - sal_uInt32 pos = s.Tell (); - sal_Int16 data; - SAL_INFO ("cppcanvas.emf", "EMF+ dumping words"); - for (; i > 0; i --) { - s >> data; - SAL_INFO ("cppcanvas.emf", "EMF+\tdata: " << std::hex << data << std::dec); - } - SAL_INFO ("cppcanvas.emf", "EMF+ end dumping words"); - s.Seek (pos); - } -#endif - struct EMFPPath : public EMFPObject { ::basegfx::B2DPolyPolygon aPolygon; @@ -454,9 +438,6 @@ namespace cppcanvas SAL_INFO("cppcanvas.emf", "EMF+\tpath length: " << pathLength); sal_uInt32 pos = s.Tell (); -#if OSL_DEBUG_LEVEL > 1 - dumpWords (s, 32); -#endif sal_uInt32 pathHeader; sal_Int32 pathPoints, pathFlags; @@ -523,10 +504,6 @@ namespace cppcanvas SAL_INFO("cppcanvas.emf", "EMF+\tcolor[" << i << "]: 0x" << std::hex << color << std::dec); } } - } else { -#if OSL_DEBUG_LEVEL > 1 - dumpWords (s, 1024); -#endif } break; } @@ -1009,7 +986,7 @@ namespace cppcanvas SvFileStream file( emfp_debug_filename, STREAM_WRITE | STREAM_TRUNC ); - mfStream >> file; + mfStream.WriteStream(file); file.Flush(); file.Close(); #endif @@ -1616,10 +1593,6 @@ namespace cppcanvas sal_uInt32 length = pAct->GetDataSize (); SvMemoryStream rMF ((void*) pAct->GetData (), length, STREAM_READ); -#if OSL_DEBUG_LEVEL > 2 - SAL_INFO("cppcanvas.emf", "EMF+\tDump of EMF+ record"); - dumpWords(rMF, length); -#endif length -= 4; while (length > 0) { @@ -2274,9 +2247,6 @@ namespace cppcanvas { SAL_WARN("cppcanvas.emf", "ImplRenderer::processEMFPlus: " "size " << size << " > length " << length); -#if OSL_DEBUG_LEVEL > 1 - dumpWords(rMF, length); -#endif length = 0; } } -- cgit