Cppcheck.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-15 15:44:57 +03:00
parent 806a1c41d9
commit 78f1e89f08
46 changed files with 92 additions and 10 deletions

View File

@ -83,6 +83,7 @@ bool VCurveLength::Filter(quint32 id)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VCurveLength::GetId() const
{
return d->id;
@ -95,6 +96,7 @@ void VCurveLength::SetId(const quint32 &id)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VCurveLength::GetParentId() const
{
return d->parentId;

View File

@ -89,12 +89,14 @@ void VLineAngle::SetValue(const VPointF *p1, const VPointF *p2)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VLineAngle::GetP1Id() const
{
return d->p1Id;
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VLineAngle::GetP2Id() const
{
return d->p2Id;

View File

@ -135,6 +135,7 @@ qreal VVariable::GetKsize() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VVariable::SetKsize(const qreal &value)
{
d->ksize = value;
@ -152,6 +153,7 @@ qreal VVariable::GetKheight() const
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VVariable::SetKheight(const qreal &value)
{
d->kheight = value;

View File

@ -429,6 +429,7 @@ bool VContainer::IsUnique(const QString &name)
* @param name name of row
* @return true if contains
*/
// cppcheck-suppress unusedFunction
bool VContainer::VariableExist(const QString &name)
{
return d->variables.contains(name);
@ -453,6 +454,7 @@ const QMap<QString, QSharedPointer<T> > VContainer::DataVar(const VarType &type)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VContainer::ClearDetails()
{
d->details.clear();

View File

@ -1788,6 +1788,7 @@ QString VApplication::Description(const QString &measurement) const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QString VApplication::PostfixOperator(const QString &name) const
{
return postfixOperators.value(name).translate();

View File

@ -144,6 +144,7 @@ Cases DialogLayoutSettings::GetGroup() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void DialogLayoutSettings::SetGroup(const Cases &value)
{
switch (value)
@ -182,6 +183,7 @@ int DialogLayoutSettings::GetIncrease() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void DialogLayoutSettings::SetIncrease(int increase)
{
int index = ui->comboBoxIncrease->findText(QString::number(increase));

View File

@ -1123,6 +1123,7 @@ void DialogTool::UpdateList()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 DialogTool::GetToolId() const
{
return toolId;

View File

@ -127,6 +127,7 @@ protected:
Q_DISABLE_COPY(DialogTool)
/** @brief data container with data */
// cppcheck-suppress duplInheritedMember
const VContainer *data;
/** @brief isInitialized true if window is initialized */

View File

@ -114,7 +114,7 @@ QVector<QPointF> VAbstractCurve::FromBegin(const QVector<QPointF> &points, const
}
//---------------------------------------------------------------------------------------------------------------------
QVector<QPointF> VAbstractCurve::ToEnd(const QVector<QPointF> &points, const QPointF &end) const
QVector<QPointF> VAbstractCurve::ToEnd(const QVector<QPointF> &points, const QPointF &end)
{
QVector<QPointF> reversed = GetReversePoints(points);
reversed = FromBegin(reversed, end);

View File

@ -54,7 +54,7 @@ protected:
QPainterPath ShowDirection(const QVector<QPointF> &points) const;
private:
static QVector<QPointF> FromBegin(const QVector<QPointF> &points, const QPointF &begin);
QVector<QPointF> ToEnd(const QVector<QPointF> &points, const QPointF &end) const;
static QVector<QPointF> ToEnd(const QVector<QPointF> &points, const QPointF &end);
};
#endif // VABSTRACTCURVE_H

View File

@ -655,6 +655,7 @@ QVector<VNodeDetail> VDetail::getNodes() const
* @brief setNodes set list of nodes
* @param value list of nodes
*/
// cppcheck-suppress unusedFunction
void VDetail::setNodes(const QVector<VNodeDetail> &value)
{
d->nodes = value;

View File

@ -154,6 +154,7 @@ GOType VGObject::getType() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VGObject::setType(const GOType &type)
{
d->type = type;
@ -405,6 +406,7 @@ QVector<QPointF> VGObject::GetReversePoints(const QVector<QPointF> &points)
* @param newPoints point whos we try to add to contour.
* @return length length of contour.
*/
// cppcheck-suppress unusedFunction
int VGObject::GetLengthContour(const QVector<QPointF> &contour, const QVector<QPointF> &newPoints)
{
qreal length = 0;

View File

@ -78,6 +78,7 @@ Tool VNodeDetail::getTypeTool() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VNodeDetail::setTypeTool(const Tool &value)
{
d->typeTool = value;
@ -90,6 +91,7 @@ NodeDetail VNodeDetail::getTypeNode() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VNodeDetail::setTypeNode(const NodeDetail &value)
{
d->typeNode = value;

View File

@ -39,6 +39,7 @@ class VAbstractSpline:public VDrawTool, public QGraphicsPathItem
public:
VAbstractSpline(VPattern *doc, VContainer *data, quint32 id, QGraphicsItem * parent = nullptr);
virtual ~VAbstractSpline();
// cppcheck-suppress duplInheritedMember
static const QString TagName;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
virtual int type() const {return Type;}

View File

@ -86,12 +86,14 @@ void VToolCut::Disable(bool disable)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VToolCut::getCurveCutId() const
{
return curveCutId;
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VToolCut::setCurveCutId(const quint32 &value)
{
if (value != NULL_ID)
@ -145,6 +147,7 @@ void VToolCut::RemoveReferens()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VToolCut::FullUpdateCurveFromFile(const QString &attrCurve)
{
Q_ASSERT_X(attrCurve.isEmpty() == false, Q_FUNC_INFO, "attribute name is empty");

View File

@ -336,12 +336,14 @@ void VToolShoulderPoint::ReadToolAttributes(const QDomElement &domElement)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VToolShoulderPoint::getPShoulder() const
{
return pShoulder;
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VToolShoulderPoint::setPShoulder(const quint32 &value)
{
if (value != NULL_ID)

View File

@ -194,6 +194,7 @@ void VNodeArc::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
* @brief hoverMoveEvent handle hover move events.
* @param event hover move event.
*/
// cppcheck-suppress unusedFunction
void VNodeArc::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
{
Q_UNUSED(event);

View File

@ -306,6 +306,7 @@ QMap<QString, QString> VAbstractTool::ColorsList()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QMap<QString, quint32> VAbstractTool::PointsList() const
{
const QHash<quint32, QSharedPointer<VGObject> > *objs = data.DataGObjects();

View File

@ -101,6 +101,7 @@ void VisToolSplinePath::setPath(const VSplinePath &value)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
VSplinePath VisToolSplinePath::getPath()
{
return path;

View File

@ -58,6 +58,7 @@ void Visualization::setLineStyle(const Qt::PenStyle &value)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void Visualization::setScenePos(const QPointF &value)
{
scenePos = value;
@ -77,6 +78,7 @@ void Visualization::VisualMode(const quint32 &pointId)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void Visualization::setMainColor(const QColor &value)
{
mainColor = value;

View File

@ -132,6 +132,7 @@ void VSimpleCurve::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QColor VSimpleCurve::GetCurrentColor() const
{
return currentColor;

View File

@ -65,12 +65,14 @@ void GraphicsViewZoom::gentle_zoom(double factor)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void GraphicsViewZoom::set_modifiers(Qt::KeyboardModifiers modifiers)
{
_modifiers = modifiers;
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void GraphicsViewZoom::set_zoom_factor_base(double value)
{
_zoom_factor_base = value;

View File

@ -46,6 +46,7 @@ VTableGraphicsView::VTableGraphicsView(QWidget *parent)
/**
* @brief selectionChanged handle selection change.
*/
// cppcheck-suppress unusedFunction
void VTableGraphicsView::selectionChanged()
{
QList<QGraphicsItem *> listSelectedItems = scene()->selectedItems();
@ -65,6 +66,7 @@ void VTableGraphicsView::selectionChanged()
/**
* @brief MirrorItem mirror detail.
*/
// cppcheck-suppress unusedFunction
void VTableGraphicsView::MirrorItem()
{
QList<QGraphicsItem *> list = scene()->selectedItems();
@ -110,6 +112,7 @@ void VTableGraphicsView::MirrorItem()
* @brief wheelEvent handle wheel events.
* @param event wheel event.
*/
// cppcheck-suppress unusedFunction
void VTableGraphicsView::wheelEvent(QWheelEvent *event)
{
if (QGuiApplication::keyboardModifiers() == Qt::ControlModifier)

View File

@ -553,6 +553,7 @@ void VPattern::DecrementReferens(quint32 id) const
* @brief SPointActiveDraw return id base point current pattern peace.
* @return id base point.
*/
// cppcheck-suppress unusedFunction
quint32 VPattern::SPointActiveDraw()
{
QDomElement calcElement;
@ -879,6 +880,7 @@ void VPattern::ClearScene()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VPattern::customEvent(QEvent *event)
{
if (event->type() == UNDO_EVENT)

View File

@ -161,6 +161,7 @@ VException *VException::clone() const
/**
* @brief raise method raise for exception
*/
// cppcheck-suppress unusedFunction
Q_NORETURN void VException::raise() const
{
throw *this;

View File

@ -625,6 +625,7 @@ bool VDomDocument::SaveDocument(const QString &fileName, QString &error) const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QString VDomDocument::Major() const
{
QString version = UniqueTagText(TagVersion, "0.0.0");
@ -633,6 +634,7 @@ QString VDomDocument::Major() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QString VDomDocument::Minor() const
{
QString version = UniqueTagText(TagVersion, "0.0.0");
@ -641,6 +643,7 @@ QString VDomDocument::Minor() const
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QString VDomDocument::Patch() const
{
QString version = UniqueTagText(TagVersion, "0.0.0");

View File

@ -746,6 +746,7 @@ void QmuParserBase::ApplyFunc( QStack<token_type> &a_stOpt, QStack<token_type> &
}
token_type funTok = a_stOpt.pop();
// cppcheck-suppress assertWithSideEffect
assert(funTok.GetFuncAddr());
// Binary operators must rely on their internal operator number

View File

@ -1442,17 +1442,17 @@ int QmuParserTester::EqnTest ( const QString &a_str, double a_fRes, bool a_fPass
int QmuParserTester::EqnTestBulk(const QString &a_str, double a_fRes[4], bool a_fPass)
{
QmuParserTester::c_iCount++;
// Define Bulk Variables
int nBulkSize = 4;
double vVariableA[] = { 1, 2, 3, 4 }; // variable values
double vVariableB[] = { 2, 2, 2, 2 }; // variable values
double vVariableC[] = { 3, 3, 3, 3 }; // variable values
double vResults[] = { 0, 0, 0, 0 }; // variable values
int iRet(0);
try
{
// Define Bulk Variables
int nBulkSize = 4;
double vVariableA[] = { 1, 2, 3, 4 }; // variable values
double vVariableB[] = { 2, 2, 2, 2 }; // variable values
double vVariableC[] = { 3, 3, 3, 3 }; // variable values
double vResults[] = { 0, 0, 0, 0 }; // variable values
QmuParser p;
p.DefineConst("const1", 1);
p.DefineConst("const2", 2);

View File

@ -64,7 +64,7 @@ private:
static int ThrowTest ( const QString &a_str, int a_iErrc, bool a_bFail = true );
// Test Bulkmode
int EqnTestBulk(const QString &a_str, double a_fRes[4], bool a_fPass);
static int EqnTestBulk(const QString &a_str, double a_fRes[4], bool a_fPass);
// Multiarg callbacks
static qreal f1of1 ( qreal v )

View File

@ -65,6 +65,7 @@ VLayoutDetail::~VLayoutDetail()
{}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QVector<QPointF> VLayoutDetail::GetContourPoints() const
{
return d->contour;
@ -91,6 +92,7 @@ void VLayoutDetail::SetCountourPoints(const QVector<QPointF> &points)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QVector<QPointF> VLayoutDetail::GetSeamAllowencePoints() const
{
return d->seamAllowence;

View File

@ -66,6 +66,7 @@ void VLayoutGenerator::SetCaseType(Cases caseType)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
int VLayoutGenerator::DetailsCount()
{
return bank->AllDetailsCount();
@ -184,6 +185,7 @@ void VLayoutGenerator::Abort()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
int VLayoutGenerator::GetRotationIncrease() const
{
return rotationIncrease;

View File

@ -95,6 +95,7 @@ void VPosition::run()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VPosition::getPaperIndex() const
{
return paperIndex;
@ -107,6 +108,7 @@ void VPosition::setPaperIndex(const quint32 &value)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VPosition::getFrame() const
{
return frame;
@ -119,6 +121,7 @@ void VPosition::setFrame(const quint32 &value)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
quint32 VPosition::getDetailsCount() const
{
return detailsCount;
@ -576,6 +579,7 @@ void VPosition::AppendWhole(QVector<QPointF> &contour, const VLayoutDetail &deta
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QPolygonF VPosition::GlobalPolygon() const
{
QVector<QPointF> points = gContour.GetContour();

View File

@ -527,21 +527,28 @@ qreal incircleadapt(qreal *pa, qreal *pb, qreal *pc, qreal *pd, qreal permanent)
int temp8len, temp16alen, temp16blen, temp16clen;
int temp32alen, temp32blen, temp48len, temp64len;
qreal axtbb[8], axtcc[8], aytbb[8], aytcc[8];
// cppcheck-suppress variableScope
int axtbblen, axtcclen, aytbblen, aytcclen;
qreal bxtaa[8], bxtcc[8], bytaa[8], bytcc[8];
// cppcheck-suppress variableScope
int bxtaalen, bxtcclen, bytaalen, bytcclen;
qreal cxtaa[8], cxtbb[8], cytaa[8], cytbb[8];
// cppcheck-suppress variableScope
int cxtaalen, cxtbblen, cytaalen, cytbblen;
qreal axtbc[8], aytbc[8], bxtca[8], bytca[8], cxtab[8], cytab[8];
int axtbclen, aytbclen, bxtcalen, bytcalen, cxtablen, cytablen;
qreal axtbct[16], aytbct[16], bxtcat[16], bytcat[16], cxtabt[16], cytabt[16];
// cppcheck-suppress variableScope
int axtbctlen, aytbctlen, bxtcatlen, bytcatlen, cxtabtlen, cytabtlen;
qreal axtbctt[8], aytbctt[8], bxtcatt[8];
qreal bytcatt[8], cxtabtt[8], cytabtt[8];
// cppcheck-suppress variableScope
int axtbcttlen, aytbcttlen, bxtcattlen, bytcattlen, cxtabttlen, cytabttlen;
qreal abt[8], bct[8], cat[8];
// cppcheck-suppress variableScope
int abtlen, bctlen, catlen;
qreal abtt[4], bctt[4], catt[4];
// cppcheck-suppress variableScope
int abttlen, bcttlen, cattlen;
INEXACT qreal abtt3, bctt3, catt3;
qreal negate;

View File

@ -119,6 +119,7 @@ bool VObjEngine::end()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VObjEngine::updateState(const QPaintEngineState &state)
{
QPaintEngine::DirtyFlags flags = state.state();
@ -252,6 +253,7 @@ void VObjEngine::drawPoints(const QPoint *points, int pointCount)
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void VObjEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)
{
Q_UNUSED(r)

View File

@ -49,12 +49,14 @@ VObjPaintDevice::~VObjPaintDevice()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QPaintEngine *VObjPaintDevice::paintEngine() const
{
return engine;
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
QString VObjPaintDevice::getFileName() const
{
return fileName;

View File

@ -145,6 +145,7 @@ void CheckableMessageBox::setText(const QString &t)
d->messageLabel->setText(t);
}
// cppcheck-suppress unusedFunction
QPixmap CheckableMessageBox::iconPixmap() const
{
if (const QPixmap *p = d->pixmapLabel->pixmap())
@ -180,6 +181,7 @@ void CheckableMessageBox::setCheckBoxText(const QString &t)
d->checkBox->setText(t);
}
// cppcheck-suppress unusedFunction
bool CheckableMessageBox::isCheckBoxVisible() const
{
return d->checkBox->isVisible();
@ -276,6 +278,7 @@ CheckableMessageBox::information(QWidget *parent,
return mb.clickedStandardButton();
}
// cppcheck-suppress unusedFunction
QMessageBox::StandardButton CheckableMessageBox::dialogButtonBoxToMessageBoxButton(QDialogButtonBox::StandardButton db)
{
return static_cast<QMessageBox::StandardButton>(int(db));
@ -337,6 +340,7 @@ void CheckableMessageBox::doNotAskAgain(QSettings *settings, const QString &sett
with the escape key, or \a acceptButton if the dialog is suppressed.
*/
QDialogButtonBox::StandardButton
// cppcheck-suppress unusedFunction
CheckableMessageBox::doNotAskAgainQuestion(QWidget *parent, const QString &title,
const QString &text, QSettings *settings,
const QString &settingsSubKey,
@ -370,6 +374,7 @@ CheckableMessageBox::doNotAskAgainQuestion(QWidget *parent, const QString &title
with the escape key, or \a defaultButton if the dialog is suppressed.
*/
QDialogButtonBox::StandardButton
// cppcheck-suppress unusedFunction
CheckableMessageBox::doNotShowAgainInformation(QWidget *parent, const QString &title,
const QString &text, QSettings *settings,
const QString &settingsSubKey,
@ -397,6 +402,7 @@ CheckableMessageBox::doNotShowAgainInformation(QWidget *parent, const QString &t
Resets all suppression settings for doNotAskAgainQuestion() found in \a settings,
so all these message boxes are shown again.
*/
// cppcheck-suppress unusedFunction
void CheckableMessageBox::resetAllDoNotAskAgainQuestions(QSettings *settings)
{
//Q_ASSERT(settings, return);
@ -409,6 +415,7 @@ void CheckableMessageBox::resetAllDoNotAskAgainQuestions(QSettings *settings)
Returns whether any message boxes from doNotAskAgainQuestion() are suppressed
in the \a settings.
*/
// cppcheck-suppress unusedFunction
bool CheckableMessageBox::hasSuppressedQuestions(QSettings *settings)
{
//Q_ASSERT(settings, return false);

View File

@ -168,11 +168,13 @@ void VFileEditWidget::dragEnterEvent(QDragEnterEvent* event)
}
}
// cppcheck-suppress unusedFunction
void VFileEditWidget::dragMoveEvent(QDragMoveEvent* event)
{
event->acceptProposedAction();
}
// cppcheck-suppress unusedFunction
void VFileEditWidget::dragLeaveEvent(QDragLeaveEvent* event)
{
event->accept();

View File

@ -118,6 +118,7 @@ void VLineColorProperty::setColors(const QMap<QString, QString> &colors)
}
}
// cppcheck-suppress unusedFunction
QMap<QString, QString> VLineColorProperty::getColors() const
{
return colors;

View File

@ -119,6 +119,7 @@ void VLineTypeProperty::setStyles(const QMap<QString, QIcon> &styles)
}
}
// cppcheck-suppress unusedFunction
QMap<QString, QIcon> VLineTypeProperty::getStyles() const
{
return styles;

View File

@ -113,12 +113,14 @@ QVariant VObjectProperty::getEditorData(const QWidget *editor) const
}
//! Sets the objects list
// cppcheck-suppress unusedFunction
void VObjectProperty::setObjectsList(const QMap<QString, quint32> &objects)
{
this->objects = objects;
}
//! Get the settings. This function has to be implemented in a subclass in order to have an effect
// cppcheck-suppress unusedFunction
QMap<QString, quint32> VObjectProperty::getObjects() const
{
return objects;

View File

@ -80,6 +80,7 @@ QString VShortcutEditWidget::getShortcutAsString() const
return CurrentKeySequence.toString();
}
// cppcheck-suppress unusedFunction
QKeySequence VShortcutEditWidget::getShortcut()
{
return CurrentKeySequence;

View File

@ -123,6 +123,7 @@ void VStringProperty::UpdateParent(const QVariant &value)
emit childChanged(value, typeForParent);
}
// cppcheck-suppress unusedFunction
int VStringProperty::getTypeForParent() const
{
return typeForParent;

View File

@ -186,6 +186,7 @@ QVariant VProperty::getValue() const
return d_ptr->VariantValue;
}
// cppcheck-suppress unusedFunction
QString VProperty::serialize() const
{
return getValue().toString();

View File

@ -137,6 +137,7 @@ VProperty* VPropertyFactoryManager::createProperty(const QString& type, const QS
return tmpResult;
}
// cppcheck-suppress unusedFunction
VPropertyFactoryManager *VPropertyFactoryManager::getDefaultManager()
{
if (!DefaultManager)
@ -148,6 +149,7 @@ VPropertyFactoryManager *VPropertyFactoryManager::getDefaultManager()
return DefaultManager;
}
// cppcheck-suppress unusedFunction
QStringList VPropertyFactoryManager::getSupportedTypes()
{
return d_ptr->Factories.keys();

View File

@ -177,6 +177,7 @@ QString VPropertySet::getPropertyID(const VProperty *prop, bool look_for_parent_
return tmpResult;
}
// cppcheck-suppress unusedFunction
const QMap<QString, VProperty *> &VPropertySet::getPropertiesMap() const
{
return d_ptr->Properties;

View File

@ -40,6 +40,7 @@ TST_VPoster::TST_VPoster(QObject *parent) :
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void TST_VPoster::BigPoster()
{
QPrinter printer;
@ -59,6 +60,7 @@ void TST_VPoster::BigPoster()
}
//---------------------------------------------------------------------------------------------------------------------
// cppcheck-suppress unusedFunction
void TST_VPoster::SmallPoster()
{
QPrinter printer;