aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_painter.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-09-02 17:14:59 +0000
committerGravatar Fabio Bas2009-09-02 17:14:59 +0000
commitb1c5a9cbd8a51fe98ec0e44d9f97788c81518a37 (patch)
tree9bb2e7591dadf0841c3acf2582755762aee2350d /src/modules/objects/class_painter.cpp
parentmore compilation denoising (diff)
downloadKVIrc-b1c5a9cbd8a51fe98ec0e44d9f97788c81518a37.tar.gz
KVIrc-b1c5a9cbd8a51fe98ec0e44d9f97788c81518a37.tar.bz2
KVIrc-b1c5a9cbd8a51fe98ec0e44d9f97788c81518a37.zip
even moar compilation denoising
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3469 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_painter.cpp')
-rw-r--r--src/modules/objects/class_painter.cpp35
1 files changed, 20 insertions, 15 deletions
diff --git a/src/modules/objects/class_painter.cpp b/src/modules/objects/class_painter.cpp
index e78990906..071977426 100644
--- a/src/modules/objects/class_painter.cpp
+++ b/src/modules/objects/class_painter.cpp
@@ -1124,28 +1124,31 @@ void KviKvsObject_painter::detachDevice()
if(!m_pDeviceObject)return;
disconnect(m_pDeviceObject,SIGNAL(aboutToDie()),this,SLOT(detachDevice()));
m_pPainter->end();
- if (m_pPrinter)
- {
- delete m_pPrinter;
- m_pPrinter=0;
- }
+ if (m_pPrinter)
+ {
+ delete m_pPrinter;
+ m_pPrinter=0;
+ }
m_pDeviceObject = 0;
}
KVSO_CLASS_FUNCTION(painter,end)
{
- if(!m_pDeviceObject)
- {
- m_pPainter->end();
- if (m_pPrinter)
- {
- delete m_pPrinter;
- m_pPrinter=0;
- }
- }
- else detachDevice();
+ Q_UNUSED(c);
+
+ if(!m_pDeviceObject)
+ {
+ m_pPainter->end();
+ if (m_pPrinter)
+ {
+ delete m_pPrinter;
+ m_pPrinter=0;
+ }
+ }
+ else detachDevice();
return true;
}
+
KVSO_CLASS_FUNCTION(painter,beginPdf)
{
CHECK_INTERNAL_POINTER(m_pPainter)
@@ -1598,6 +1601,7 @@ KVSO_CLASS_FUNCTION(painter,setGradientAsBrush)
KVSO_CLASS_FUNCTION(painter,clearGradient)
{
+ Q_UNUSED(c);
if (!m_pGradient) delete m_pGradient;
m_pGradient=0;
return true;
@@ -1722,6 +1726,7 @@ KVSO_CLASS_FUNCTION(painter,drawPath)
KVSO_CLASS_FUNCTION(painter,resetPath)
{
+ Q_UNUSED(c);
if (m_pPainterPath){
delete m_pPainterPath;
m_pPainterPath=0;