<div dir="ltr">Worked it out - missing brace in an if statement. I was staring at this for a long time till I decided to remove the conditional defines to make it compile... then I found it. <br><br>I've pushed the fix. <br>
<br>Chris<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 12, 2013 at 12:06 PM, Chris Sherlock <span dir="ltr"><<a href="mailto:chris.sherlock79@gmail.com" target="_blank">chris.sherlock79@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hey folks, <br><br></div>I'm having tremendous issues with compiling cppcanvas when setting DBG_LEVEL=2<br>
<br></div>Some of these I have fixed in <a href="https://gerrit.libreoffice.org/#/c/3861/" target="_blank">https://gerrit.libreoffice.org/#/c/3861/</a><br>
<br></div>However, I can't work out why I get the below errors. When DBG_LEVEL is 1 then I don't get the errors. <br><br>Can anyone shed any light on this? Very grateful to the person who spots the issue!!!<br><br>
Chris Sherlock<br><div><div><div><br>chris@LibreOfficeDev:~/repos/LibreOffice/core$ cat ~/error<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:806:28: error: non-friend class member 'ReadRectangle' cannot have a qualified name<br>
void ImplRenderer::ReadRectangle (SvStream& s, float& x, float& y, float &width, float& height, bool bCompressed)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:821:28: error: non-friend class member 'ReadPoint' cannot have a qualified name<br>
void ImplRenderer::ReadPoint (SvStream& s, float& x, float& y, sal_uInt32 flags)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:834:28: error: non-friend class member 'MapToDevice' cannot have a qualified name<br>
void ImplRenderer::MapToDevice (double& x, double& y)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:841:43: error: non-friend class member 'Map' cannot have a qualified name<br>
::basegfx::B2DPoint ImplRenderer::Map (double ix, double iy)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:859:42: error: non-friend class member 'MapSize' cannot have a qualified name<br>
::basegfx::B2DSize ImplRenderer::MapSize (double iwidth, double iheight)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:881:28: error: non-friend class member 'EMFPPlusFillPolygon' cannot have a qualified name<br>
void ImplRenderer::EMFPPlusFillPolygon (::basegfx::B2DPolyPolygon& polygon, const ActionFactoryParameters& rParms,<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1093:28: error: non-friend class member 'EMFPPlusDrawPolygon' cannot have a qualified name<br>
void ImplRenderer::EMFPPlusDrawPolygon (::basegfx::B2DPolyPolygon& polygon, const ActionFactoryParameters& rParms,<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1128:28: error: non-friend class member 'processObjectRecord' cannot have a qualified name<br>
void ImplRenderer::processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags, sal_uInt32 dataSize, sal_Bool bUseWholeStream)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1201:30: error: non-friend class member 'setFont' cannot have a qualified name<br>
double ImplRenderer::setFont (sal_uInt8 objectId, const ActionFactoryParameters& rParms, OutDevState& rState)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1216:28: error: non-friend class member 'GraphicStatePush' cannot have a qualified name<br>
void ImplRenderer::GraphicStatePush(GraphicStateMap& map, sal_Int32 index, OutDevState& rState)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1236:28: error: non-friend class member 'GraphicStatePop' cannot have a qualified name<br>
void ImplRenderer::GraphicStatePop(GraphicStateMap& map, sal_Int32 index, OutDevState& rState)<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1253:28: error: non-friend class member 'processEMFPlus' cannot have a qualified name<br>
void ImplRenderer::processEMFPlus( MetaCommentAction* pAct, const ActionFactoryParameters& rFactoryParms,<br> ~~~~~~~~~~~~~~^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:616:77: error: expected ';' at end of declaration<br>
void Read (SvStream& s, ImplRenderer& rR, sal_Int32, sal_Int32 )<br> ^<br> ;<br>
/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:759:48: error: call to 'valueOf' is ambiguous<br> emfp_debug_filename += OUString::valueOf(emfp_debug_stream_number++);<br>
^~~~~~~~~~~~~~~~~<br>/home/chris/repos/LibreOffice/core/include/rtl/ustring.hxx:2129:62: note: candidate function<br> SAL_DEPRECATED_INTERNAL("use boolean()") static OUString valueOf( sal_Bool b ) SAL_THROW(())<br>
^<br>/home/chris/repos/LibreOffice/core/include/rtl/ustring.hxx:2160:84: note: candidate function<br> SAL_DEPRECATED_INTERNAL("convert to OUString or use directly") static OUString valueOf( sal_Unicode c ) SAL_THROW(())<br>
^<br>/home/chris/repos/LibreOffice/core/include/rtl/ustring.hxx:2175:61: note: candidate function<br> SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( sal_Int32 i, sal_Int16 radix = 10 ) SAL_THROW(())<br>
^<br>/home/chris/repos/LibreOffice/core/include/rtl/ustring.hxx:2190:61: note: candidate function<br> SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) SAL_THROW(())<br>
^<br>/home/chris/repos/LibreOffice/core/include/rtl/ustring.hxx:2204:61: note: candidate function<br> SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( float f ) SAL_THROW(())<br>
^<br>/home/chris/repos/LibreOffice/core/include/rtl/ustring.hxx:2218:61: note: candidate function<br> SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( double d ) SAL_THROW(())<br>
^<br>/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1942:6: error: expected ';' after struct<br> }<br> ^<br> ;<br>
/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:1945:52: error: expected '}'<br>/* vim:set shiftwidth=4 softtabstop=4 expandtab: */<br> ^<br>
/home/chris/repos/LibreOffice/core/cppcanvas/source/mtfrenderer/emfplus.cxx:96:1: note: to match this '{'<br>{<br>^<br>16 errors generated.<br><br></div></div></div></div>
</blockquote></div><br></div>