mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
Redundant checks have been removed
This commit is contained in:
parent
200d8015a2
commit
4cfa653ed8
@ -174,13 +174,8 @@ BandDesignIntf::~BandDesignIntf()
|
|||||||
// delete band;
|
// delete band;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
delete m_bandMarker;
|
||||||
if (m_bandMarker) {
|
delete m_bandNameLabel;
|
||||||
delete m_bandMarker;
|
|
||||||
}
|
|
||||||
if (m_bandNameLabel){
|
|
||||||
delete m_bandNameLabel;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BandDesignIntf::paint(QPainter *ppainter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
void BandDesignIntf::paint(QPainter *ppainter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
|
@ -413,7 +413,7 @@ public:
|
|||||||
bool isEditable() const {return false;}
|
bool isEditable() const {return false;}
|
||||||
bool isRemovable() const {return false;}
|
bool isRemovable() const {return false;}
|
||||||
void invalidate(IDataSource::DatasourceMode mode){Q_UNUSED(mode)}
|
void invalidate(IDataSource::DatasourceMode mode){Q_UNUSED(mode)}
|
||||||
~CallbackDatasourceHolder(){if (m_datasource) delete m_datasource;}
|
~CallbackDatasourceHolder(){delete m_datasource;}
|
||||||
void update(){}
|
void update(){}
|
||||||
void clearErrors(){}
|
void clearErrors(){}
|
||||||
private:
|
private:
|
||||||
|
@ -220,8 +220,7 @@ void ReportEnginePrivate::printReport(ReportPages pages, QPrinter &printer, cons
|
|||||||
|
|
||||||
currenPage++;
|
currenPage++;
|
||||||
}
|
}
|
||||||
if (painter) delete painter;
|
delete painter;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ReportEnginePrivate::printReport(QPrinter* printer)
|
bool ReportEnginePrivate::printReport(QPrinter* printer)
|
||||||
@ -543,7 +542,7 @@ ReportEngine::ReportEngine(QObject *parent)
|
|||||||
|
|
||||||
ReportEngine::~ReportEngine()
|
ReportEngine::~ReportEngine()
|
||||||
{
|
{
|
||||||
if (d_ptr) delete d_ptr;
|
delete d_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ReportEngine::printReport(QPrinter *printer)
|
bool ReportEngine::printReport(QPrinter *printer)
|
||||||
|
@ -268,10 +268,8 @@ QScriptValue groupFunction(QScriptContext* pcontext, QScriptEngine* pengine){
|
|||||||
|
|
||||||
ScriptEngineManager::~ScriptEngineManager()
|
ScriptEngineManager::~ScriptEngineManager()
|
||||||
{
|
{
|
||||||
if (m_model){
|
delete m_model;
|
||||||
delete m_model;
|
m_model = 0;
|
||||||
m_model=0;
|
|
||||||
}
|
|
||||||
delete m_scriptEngine;
|
delete m_scriptEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,8 +91,7 @@ QObjectPropertyModel::QObjectPropertyModel(QObject *parent/*=0*/)
|
|||||||
|
|
||||||
QObjectPropertyModel::~QObjectPropertyModel()
|
QObjectPropertyModel::~QObjectPropertyModel()
|
||||||
{
|
{
|
||||||
if (m_rootNode)
|
delete m_rootNode;
|
||||||
delete m_rootNode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QObjectPropertyModel::initModel()
|
void QObjectPropertyModel::initModel()
|
||||||
|
Loading…
Reference in New Issue
Block a user