summaryrefslogtreecommitdiff
path: root/vcl/headless/svpgdi.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-25 13:41:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-25 13:44:44 +0100
commit3928a1514c9202a52d698570022c197ecc8703eb (patch)
treea2278aee635b54bd40d74475741f76f66aca5078 /vcl/headless/svpgdi.cxx
parent08b3b6ed6c4d8599c9bb75719974c710462f2764 (diff)
error: missing binary operator before token '('
Change-Id: Ieafb13245a11347cbda8a33e49ad618bf85d8a89
Diffstat (limited to 'vcl/headless/svpgdi.cxx')
-rw-r--r--vcl/headless/svpgdi.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 957463b2b974..f5dbaf4dd62e 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -138,7 +138,10 @@ void SvpSalGraphics::clipRegion(cairo_t* cr)
bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency)
{
-#if ENABLE_CAIRO_CANVAS && CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if !ENABLE_CAIRO_CANVAS
+ (void)nX; (void)nY; (void)nWidth; (void)nHeight; (void)nTransparency;
+ return false;
+#elif CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
if (m_bUseLineColor || !m_bUseFillColor)
return false;
@@ -192,11 +195,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long nWidth, long nHeight,
}
return true;
#else
- (void)nX;
- (void)nY;
- (void)nWidth;
- (void)nHeight;
- (void)nTransparency;
+ (void)nX; (void)nY; (void)nWidth; (void)nHeight; (void)nTransparency;
return false;
#endif
}