From ebde2c1c20ec1b19b72662fc571637b4048f6735 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 18 Oct 2016 15:00:26 +0300 Subject: [PATCH] Hide unused warnings --- demo_r1/mainwindow.cpp | 1 + include/lrglobal.h | 7 ++++++ limereport/bands/lrdataband.cpp | 6 ++--- limereport/bands/lrgroupbands.cpp | 4 ++-- limereport/bands/lrpagefooter.cpp | 2 +- limereport/bands/lrpagefooter.h | 2 +- limereport/bands/lrpageheader.cpp | 2 +- limereport/bands/lrreportfooter.cpp | 2 +- limereport/bands/lrreportheader.cpp | 2 +- limereport/bands/lrsubdetailband.cpp | 6 ++--- limereport/bands/lrtearoffband.cpp | 2 +- limereport/items/lralignpropitem.cpp | 2 +- limereport/items/lrbarcodeitem.cpp | 2 +- limereport/items/lrhorizontallayout.cpp | 2 +- limereport/items/lrimageitem.cpp | 2 +- limereport/items/lrshapeitem.cpp | 2 +- limereport/items/lrsubitemparentpropitem.cpp | 2 +- limereport/items/lrtextitem.cpp | 3 ++- limereport/lrcollection.h | 4 +++- limereport/lrglobal.h | 7 ++++++ .../propertyItems/lrboolpropitem.cpp | 2 +- .../propertyItems/lrcolorpropitem.cpp | 2 +- .../propertyItems/lrcontentpropitem.cpp | 2 +- .../propertyItems/lrdatasourcepropitem.cpp | 6 ++--- .../propertyItems/lrenumpropitem.cpp | 2 +- .../propertyItems/lrflagspropitem.cpp | 2 +- .../propertyItems/lrfontpropitem.cpp | 2 +- .../propertyItems/lrgroupfieldpropitem.cpp | 2 +- .../propertyItems/lrimagepropitem.cpp | 2 +- .../propertyItems/lrintpropitem.cpp | 2 +- .../propertyItems/lrqrealpropitem.cpp | 4 ++-- .../propertyItems/lrrectproptem.cpp | 6 ++--- .../propertyItems/lrstringpropitem.cpp | 2 +- .../lrxmlbasetypesserializators.cpp | 24 +++++++++---------- .../serializators/lrxmlqrectserializator.cpp | 10 ++++---- 35 files changed, 75 insertions(+), 57 deletions(-) diff --git a/demo_r1/mainwindow.cpp b/demo_r1/mainwindow.cpp index a6a33fb..b5afab8 100644 --- a/demo_r1/mainwindow.cpp +++ b/demo_r1/mainwindow.cpp @@ -173,6 +173,7 @@ void MainWindow::prepareData(QSqlQuery* ds, LimeReport::CallbackInfo info, QVari case LimeReport::CallbackInfo::ColumnData: data = ds->value(ds->record().indexOf(info.columnName)); break; + default: break; } } diff --git a/include/lrglobal.h b/include/lrglobal.h index 0894ee0..e64cd43 100644 --- a/include/lrglobal.h +++ b/include/lrglobal.h @@ -44,6 +44,13 @@ namespace LimeReport { +#ifdef __GNUC__ +#define VARIABLE_IS_NOT_USED __attribute__ ((unused)) +#else +#define VARIABLE_IS_NOT_USED +#endif + + namespace Const{ int const RESIZE_HANDLE_SIZE = 10; int const SELECTION_PEN_SIZE = 4; diff --git a/limereport/bands/lrdataband.cpp b/limereport/bands/lrdataband.cpp index 82c5186..342622a 100644 --- a/limereport/bands/lrdataband.cpp +++ b/limereport/bands/lrdataband.cpp @@ -47,17 +47,17 @@ LimeReport::BaseDesignIntf * createFooter(QObject* owner, LimeReport::BaseDesign return new LimeReport::DataFooterBand(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Data"),LimeReport::Const::bandTAG), createBand ); -bool registredHeader = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registredHeader = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagHeader, LimeReport::ItemAttribs(QObject::tr("DataHeader"),LimeReport::Const::bandTAG), createHeader ); -bool registredFooter = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registredFooter = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagFooter, LimeReport::ItemAttribs(QObject::tr("DataFooter"),LimeReport::Const::bandTAG), createFooter diff --git a/limereport/bands/lrgroupbands.cpp b/limereport/bands/lrgroupbands.cpp index 316e03e..965982b 100644 --- a/limereport/bands/lrgroupbands.cpp +++ b/limereport/bands/lrgroupbands.cpp @@ -41,7 +41,7 @@ LimeReport::BaseDesignIntf* createHeader(QObject* owner, LimeReport::BaseDesignI return new LimeReport::GroupBandHeader(owner,parent); } -bool registredHeader = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registredHeader = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagHeader, LimeReport::ItemAttribs(QObject::tr("GroupHeader"),LimeReport::Const::bandTAG), createHeader @@ -51,7 +51,7 @@ LimeReport::BaseDesignIntf * createFooter(QObject* owner, LimeReport::BaseDesign return new LimeReport::GroupBandFooter(owner,parent); } -bool registredFooter = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registredFooter = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagFooter, LimeReport::ItemAttribs(QObject::tr("GroupFooter"),LimeReport::Const::bandTAG), createFooter diff --git a/limereport/bands/lrpagefooter.cpp b/limereport/bands/lrpagefooter.cpp index 8df5c37..c5be0fb 100644 --- a/limereport/bands/lrpagefooter.cpp +++ b/limereport/bands/lrpagefooter.cpp @@ -38,7 +38,7 @@ LimeReport::BaseDesignIntf * createBand(QObject* owner, LimeReport::BaseDesignIn return new LimeReport::PageFooter(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Page Footer"),LimeReport::Const::bandTAG), createBand diff --git a/limereport/bands/lrpagefooter.h b/limereport/bands/lrpagefooter.h index c8d4b81..d6678a3 100644 --- a/limereport/bands/lrpagefooter.h +++ b/limereport/bands/lrpagefooter.h @@ -52,8 +52,8 @@ public: protected: QColor bandColor() const; private: - bool m_printOnLastPage; bool m_printOnFirstPage; + bool m_printOnLastPage; }; } diff --git a/limereport/bands/lrpageheader.cpp b/limereport/bands/lrpageheader.cpp index 895c53d..26fc9c6 100644 --- a/limereport/bands/lrpageheader.cpp +++ b/limereport/bands/lrpageheader.cpp @@ -42,7 +42,7 @@ LimeReport::BaseDesignIntf * createBand(QObject* owner, LimeReport::BaseDesignIn return new LimeReport::PageHeader(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Page Header"),LimeReport::Const::bandTAG), createBand diff --git a/limereport/bands/lrreportfooter.cpp b/limereport/bands/lrreportfooter.cpp index 7425bf7..ead4e60 100644 --- a/limereport/bands/lrreportfooter.cpp +++ b/limereport/bands/lrreportfooter.cpp @@ -38,7 +38,7 @@ namespace{ LimeReport::BaseDesignIntf * createBand(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::ReportFooter(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Report Footer"),LimeReport::Const::bandTAG), createBand diff --git a/limereport/bands/lrreportheader.cpp b/limereport/bands/lrreportheader.cpp index 83fc9ad..5b853b7 100644 --- a/limereport/bands/lrreportheader.cpp +++ b/limereport/bands/lrreportheader.cpp @@ -37,7 +37,7 @@ namespace{ LimeReport::BaseDesignIntf * createBand(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::ReportHeader(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Report Header"),LimeReport::Const::bandTAG), createBand diff --git a/limereport/bands/lrsubdetailband.cpp b/limereport/bands/lrsubdetailband.cpp index baaa936..bfdcde3 100644 --- a/limereport/bands/lrsubdetailband.cpp +++ b/limereport/bands/lrsubdetailband.cpp @@ -43,7 +43,7 @@ LimeReport::BaseDesignIntf * createBand(QObject* owner, LimeReport::BaseDesignIn return new LimeReport::SubDetailBand(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagBand, LimeReport::ItemAttribs(QObject::tr("SubDetail"),LimeReport::Const::bandTAG), createBand @@ -53,7 +53,7 @@ LimeReport::BaseDesignIntf * createHeader(QObject* owner, LimeReport::BaseDesign return new LimeReport::SubDetailHeaderBand(owner,parent); } -bool registredHeader = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registredHeader = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagHeader, LimeReport::ItemAttribs(QObject::tr("SubDetailHeader"),LimeReport::Const::bandTAG), createHeader @@ -63,7 +63,7 @@ LimeReport::BaseDesignIntf * createFooter(QObject* owner, LimeReport::BaseDesign return new LimeReport::SubDetailFooterBand(owner,parent); } -bool registredFooter = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registredFooter = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTagFooter, LimeReport::ItemAttribs(QObject::tr("SubDetailFooter"),LimeReport::Const::bandTAG), createFooter diff --git a/limereport/bands/lrtearoffband.cpp b/limereport/bands/lrtearoffband.cpp index 61b7e79..6f854ab 100644 --- a/limereport/bands/lrtearoffband.cpp +++ b/limereport/bands/lrtearoffband.cpp @@ -8,7 +8,7 @@ namespace{ LimeReport::BaseDesignIntf * createBand(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::TearOffBand(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Tear-off Band"),LimeReport::Const::bandTAG), createBand diff --git a/limereport/items/lralignpropitem.cpp b/limereport/items/lralignpropitem.cpp index b859d1d..8bf4ce0 100644 --- a/limereport/items/lralignpropitem.cpp +++ b/limereport/items/lralignpropitem.cpp @@ -39,7 +39,7 @@ namespace{ return new LimeReport::AlignmentPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registred = LimeReport::ObjectPropFactory::instance().registerCreator( + bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("alignment","LimeReport::TextItem"), QObject::tr("alignment"), createAlignItem diff --git a/limereport/items/lrbarcodeitem.cpp b/limereport/items/lrbarcodeitem.cpp index 3e4531b..7af23bf 100644 --- a/limereport/items/lrbarcodeitem.cpp +++ b/limereport/items/lrbarcodeitem.cpp @@ -39,7 +39,7 @@ const QString xmlTag = "BarcodeItem"; LimeReport::BaseDesignIntf * createBarcodeItem(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::BarcodeItem(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator(xmlTag, LimeReport::ItemAttribs(QObject::tr("Barcode Item"),"Item"), createBarcodeItem); +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator(xmlTag, LimeReport::ItemAttribs(QObject::tr("Barcode Item"),"Item"), createBarcodeItem); } diff --git a/limereport/items/lrhorizontallayout.cpp b/limereport/items/lrhorizontallayout.cpp index b27801f..3269844 100644 --- a/limereport/items/lrhorizontallayout.cpp +++ b/limereport/items/lrhorizontallayout.cpp @@ -45,7 +45,7 @@ LimeReport::BaseDesignIntf *createHLayout(QObject *owner, LimeReport::BaseDesign { return new LimeReport::HorizontalLayout(owner, parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("HLayout"), LimeReport::Const::bandTAG), createHLayout diff --git a/limereport/items/lrimageitem.cpp b/limereport/items/lrimageitem.cpp index 4b8c678..a8e255e 100644 --- a/limereport/items/lrimageitem.cpp +++ b/limereport/items/lrimageitem.cpp @@ -39,7 +39,7 @@ const QString xmlTag = "ImageItem"; LimeReport::BaseDesignIntf * createImageItem(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::ImageItem(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Image Item"),"Item"), createImageItem ); } diff --git a/limereport/items/lrshapeitem.cpp b/limereport/items/lrshapeitem.cpp index 1639fc2..1eee941 100644 --- a/limereport/items/lrshapeitem.cpp +++ b/limereport/items/lrshapeitem.cpp @@ -39,7 +39,7 @@ const QString xmlTag = "ShapeItem"; LimeReport::BaseDesignIntf * createShapeItem(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::ShapeItem(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator( xmlTag, LimeReport::ItemAttribs(QObject::tr("Shape Item"),"Item"), createShapeItem ); } diff --git a/limereport/items/lrsubitemparentpropitem.cpp b/limereport/items/lrsubitemparentpropitem.cpp index 3380660..1b1380c 100644 --- a/limereport/items/lrsubitemparentpropitem.cpp +++ b/limereport/items/lrsubitemparentpropitem.cpp @@ -41,7 +41,7 @@ namespace{ { return new LimeReport::ItemLocationPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registred = LimeReport::ObjectPropFactory::instance().registerCreator( + bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("itemLocation","LimeReport::ItemDesignIntf"),QObject::tr("itemLocation"),createLocationPropItem ); } diff --git a/limereport/items/lrtextitem.cpp b/limereport/items/lrtextitem.cpp index ba84e2b..1bcd304 100644 --- a/limereport/items/lrtextitem.cpp +++ b/limereport/items/lrtextitem.cpp @@ -49,7 +49,7 @@ const QString xmlTag = "TextItem"; LimeReport::BaseDesignIntf * createTextItem(QObject* owner, LimeReport::BaseDesignIntf* parent){ return new LimeReport::TextItem(owner,parent); } -bool registred = LimeReport::DesignElementsFactory::instance().registerCreator(xmlTag, LimeReport::ItemAttribs(QObject::tr("Text Item"),"TextItem"), createTextItem); +bool VARIABLE_IS_NOT_USED registred = LimeReport::DesignElementsFactory::instance().registerCreator(xmlTag, LimeReport::ItemAttribs(QObject::tr("Text Item"),"TextItem"), createTextItem); } @@ -330,6 +330,7 @@ QString TextItem::formatFieldValue() double dbl = value.toDouble(&bOk); value = (bOk ? QVariant(dbl) : m_varValue); } + default: break; } } diff --git a/limereport/lrcollection.h b/limereport/lrcollection.h index 0422c28..d5d5ffe 100644 --- a/limereport/lrcollection.h +++ b/limereport/lrcollection.h @@ -33,6 +33,8 @@ #include #include +#include "lrglobal.h" + class ACollectionProperty{ public: ACollectionProperty(){} @@ -43,7 +45,7 @@ Q_DECLARE_METATYPE(ACollectionProperty) namespace LimeReport{ -const int COLLECTION_TYPE_ID = qMetaTypeId(); +const int VARIABLE_IS_NOT_USED COLLECTION_TYPE_ID = qMetaTypeId(); class ICollectionContainer{ public: virtual QObject* createElement(const QString& collectionName,const QString& elementType)=0; diff --git a/limereport/lrglobal.h b/limereport/lrglobal.h index 0894ee0..e64cd43 100644 --- a/limereport/lrglobal.h +++ b/limereport/lrglobal.h @@ -44,6 +44,13 @@ namespace LimeReport { +#ifdef __GNUC__ +#define VARIABLE_IS_NOT_USED __attribute__ ((unused)) +#else +#define VARIABLE_IS_NOT_USED +#endif + + namespace Const{ int const RESIZE_HANDLE_SIZE = 10; int const SELECTION_PEN_SIZE = 4; diff --git a/limereport/objectinspector/propertyItems/lrboolpropitem.cpp b/limereport/objectinspector/propertyItems/lrboolpropitem.cpp index 950c531..c6c9f37 100644 --- a/limereport/objectinspector/propertyItems/lrboolpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrboolpropitem.cpp @@ -42,7 +42,7 @@ namespace{ { return new LimeReport::BoolPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registred = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("bool",""),QObject::tr("bool"),createBoolPropItem); + bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("bool",""),QObject::tr("bool"),createBoolPropItem); } // namespace namespace LimeReport { diff --git a/limereport/objectinspector/propertyItems/lrcolorpropitem.cpp b/limereport/objectinspector/propertyItems/lrcolorpropitem.cpp index 4443cb9..8201e22 100644 --- a/limereport/objectinspector/propertyItems/lrcolorpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrcolorpropitem.cpp @@ -37,7 +37,7 @@ namespace{ { return new LimeReport::ColorPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredColorProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QColor",""),QObject::tr("QColor"),createColorPropItem); + bool VARIABLE_IS_NOT_USED registredColorProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QColor",""),QObject::tr("QColor"),createColorPropItem); } namespace LimeReport{ diff --git a/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp b/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp index ab50632..1b49128 100644 --- a/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp @@ -10,7 +10,7 @@ namespace{ { return new LimeReport::ContentPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredContentProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("content","LimeReport::TextItem"),QObject::tr("content"),createContentPropItem); + bool VARIABLE_IS_NOT_USED registredContentProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("content","LimeReport::TextItem"),QObject::tr("content"),createContentPropItem); } // namespace namespace LimeReport { diff --git a/limereport/objectinspector/propertyItems/lrdatasourcepropitem.cpp b/limereport/objectinspector/propertyItems/lrdatasourcepropitem.cpp index affcd9e..4463051 100644 --- a/limereport/objectinspector/propertyItems/lrdatasourcepropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrdatasourcepropitem.cpp @@ -45,13 +45,13 @@ namespace{ return new LimeReport::FieldPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredDatasouceProp = LimeReport::ObjectPropFactory::instance().registerCreator( + bool VARIABLE_IS_NOT_USED registredDatasouceProp = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("datasource","LimeReport::DataBandDesignIntf"),QObject::tr("datasource"),createDatasourcePropItem ); - bool registredImageDatasouceProp = LimeReport::ObjectPropFactory::instance().registerCreator( + bool VARIABLE_IS_NOT_USED registredImageDatasouceProp = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("datasource","LimeReport::ImageItem"),QObject::tr("datasource"),createDatasourcePropItem ); - bool registredImageFieldProp = LimeReport::ObjectPropFactory::instance().registerCreator( + bool VARIABLE_IS_NOT_USED registredImageFieldProp = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("field","LimeReport::ImageItem"),QObject::tr("field"),createFieldPropItem ); } diff --git a/limereport/objectinspector/propertyItems/lrenumpropitem.cpp b/limereport/objectinspector/propertyItems/lrenumpropitem.cpp index c90326f..dcd7937 100644 --- a/limereport/objectinspector/propertyItems/lrenumpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrenumpropitem.cpp @@ -38,7 +38,7 @@ LimeReport::ObjectPropItem * createEnumPropItem( { return new LimeReport::EnumPropItem(object, objects, name, displayName, data, parent, readonly); } -bool registred = LimeReport::ObjectPropFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("enum",""),QObject::tr("enum"),createEnumPropItem ); diff --git a/limereport/objectinspector/propertyItems/lrflagspropitem.cpp b/limereport/objectinspector/propertyItems/lrflagspropitem.cpp index 836457a..5b56e85 100644 --- a/limereport/objectinspector/propertyItems/lrflagspropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrflagspropitem.cpp @@ -46,7 +46,7 @@ LimeReport::ObjectPropItem * createFlagsPropItem( { return new LimeReport::FlagsPropItem(object, objects, name, displayName, data, parent, readonly); } -bool registred = LimeReport::ObjectPropFactory::instance().registerCreator( +bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("flags",""),QObject::tr("flags"),createFlagsPropItem ); diff --git a/limereport/objectinspector/propertyItems/lrfontpropitem.cpp b/limereport/objectinspector/propertyItems/lrfontpropitem.cpp index 389f8a7..87815ad 100644 --- a/limereport/objectinspector/propertyItems/lrfontpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrfontpropitem.cpp @@ -43,7 +43,7 @@ namespace{ { return new LimeReport::FontPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredFontProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QFont",""),QObject::tr("QFont"),createFontPropItem); + bool VARIABLE_IS_NOT_USED registredFontProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QFont",""),QObject::tr("QFont"),createFontPropItem); } diff --git a/limereport/objectinspector/propertyItems/lrgroupfieldpropitem.cpp b/limereport/objectinspector/propertyItems/lrgroupfieldpropitem.cpp index aba8fef..890f833 100644 --- a/limereport/objectinspector/propertyItems/lrgroupfieldpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrgroupfieldpropitem.cpp @@ -36,7 +36,7 @@ namespace { LimeReport::ObjectPropItem* createFieldPropItem(QObject *object, LimeReport::ObjectPropItem::ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& data, LimeReport::ObjectPropItem* parent, bool readonly){ return new LimeReport::GroupFieldPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredGroupFieldProp = LimeReport::ObjectPropFactory::instance().registerCreator( + bool VARIABLE_IS_NOT_USED registredGroupFieldProp = LimeReport::ObjectPropFactory::instance().registerCreator( LimeReport::APropIdent("groupFieldName","LimeReport::GroupBandHeader"),QObject::tr("field"),createFieldPropItem ); } diff --git a/limereport/objectinspector/propertyItems/lrimagepropitem.cpp b/limereport/objectinspector/propertyItems/lrimagepropitem.cpp index 753e18c..c6d324b 100644 --- a/limereport/objectinspector/propertyItems/lrimagepropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrimagepropitem.cpp @@ -36,7 +36,7 @@ namespace{ { return new LimeReport::ImagePropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredImageProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QImage",""),QObject::tr("QImage"),createImagePropItem); + bool VARIABLE_IS_NOT_USED registredImageProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QImage",""),QObject::tr("QImage"),createImagePropItem); } namespace LimeReport{ diff --git a/limereport/objectinspector/propertyItems/lrintpropitem.cpp b/limereport/objectinspector/propertyItems/lrintpropitem.cpp index 2393f19..bbbf801 100644 --- a/limereport/objectinspector/propertyItems/lrintpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrintpropitem.cpp @@ -37,7 +37,7 @@ namespace{ { return new LimeReport::IntPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registred = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("int",""),QObject::tr("int"),createIntPropItem); + bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("int",""),QObject::tr("int"),createIntPropItem); } // namespace namespace LimeReport{ diff --git a/limereport/objectinspector/propertyItems/lrqrealpropitem.cpp b/limereport/objectinspector/propertyItems/lrqrealpropitem.cpp index f0753a5..096c91d 100644 --- a/limereport/objectinspector/propertyItems/lrqrealpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrqrealpropitem.cpp @@ -38,8 +38,8 @@ namespace{ { return new LimeReport::QRealPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registred = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("qreal",""),QObject::tr("qreal"),createQRealPropItem); - bool registredDouble = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("double",""),QObject::tr("qreal"),createQRealPropItem); + bool VARIABLE_IS_NOT_USED registred = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("qreal",""),QObject::tr("qreal"),createQRealPropItem); + bool VARIABLE_IS_NOT_USED registredDouble = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("double",""),QObject::tr("qreal"),createQRealPropItem); } namespace LimeReport{ diff --git a/limereport/objectinspector/propertyItems/lrrectproptem.cpp b/limereport/objectinspector/propertyItems/lrrectproptem.cpp index 3fbe029..638dcab 100644 --- a/limereport/objectinspector/propertyItems/lrrectproptem.cpp +++ b/limereport/objectinspector/propertyItems/lrrectproptem.cpp @@ -50,9 +50,9 @@ namespace{ ){ return new LimeReport::RectMMPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredRectProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QRect",""),QObject::tr("QRect"),createReqtItem); - bool registredRectFProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QRectF",""),QObject::tr("QRectF"),createReqtItem); - bool registredRectMMProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("geometry","LimeReport::BaseDesignIntf"),QObject::tr("geometry"),createReqtMMItem); + bool VARIABLE_IS_NOT_USED registredRectProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QRect",""),QObject::tr("QRect"),createReqtItem); + bool VARIABLE_IS_NOT_USED registredRectFProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QRectF",""),QObject::tr("QRectF"),createReqtItem); + bool VARIABLE_IS_NOT_USED registredRectMMProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("geometry","LimeReport::BaseDesignIntf"),QObject::tr("geometry"),createReqtMMItem); } namespace LimeReport{ diff --git a/limereport/objectinspector/propertyItems/lrstringpropitem.cpp b/limereport/objectinspector/propertyItems/lrstringpropitem.cpp index 56445a9..8c4c19a 100644 --- a/limereport/objectinspector/propertyItems/lrstringpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrstringpropitem.cpp @@ -41,7 +41,7 @@ namespace{ { return new LimeReport::StringPropItem(object, objects, name, displayName, data, parent, readonly); } - bool registredStringProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QString",""),QObject::tr("QString"),createStringPropItem); + bool VARIABLE_IS_NOT_USED registredStringProp = LimeReport::ObjectPropFactory::instance().registerCreator(LimeReport::APropIdent("QString",""),QObject::tr("QString"),createStringPropItem); } // namespace namespace LimeReport{ diff --git a/limereport/serializators/lrxmlbasetypesserializators.cpp b/limereport/serializators/lrxmlbasetypesserializators.cpp index dfdc208..ebc4260 100644 --- a/limereport/serializators/lrxmlbasetypesserializators.cpp +++ b/limereport/serializators/lrxmlbasetypesserializators.cpp @@ -80,18 +80,18 @@ LimeReport::SerializatorIntf* createQVariantSerializator(QDomDocument *doc, QDom return new LimeReport::XmlQVariantSerializator(doc,node); } -bool registredQString = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QString", createQStringSerializator); -bool registredInt = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("int", createIntSerializator); -bool registredEnumAndFlags = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("enumAndFlags",createEnumAndFlagsSerializator); -bool registredBool = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("bool", createBoolSerializator); -bool registredQFont = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QFont", createFontSerializator); -bool registredQSizeF = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QSizeF", createQSizeFSerializator); -bool registredQImage = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QImage", createQImageSerializator); -bool registredQReal = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("qreal", createQRealSerializator); -bool registerDouble = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("double", createQRealSerializator); -bool registerQColor = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QColor", createQColorSerializator); -bool registerQByteArray = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QByteArray", createQByteArraySerializator); -bool registerQVariant = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QVariant", createQVariantSerializator); +bool VARIABLE_IS_NOT_USED registredQString = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QString", createQStringSerializator); +bool VARIABLE_IS_NOT_USED registredInt = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("int", createIntSerializator); +bool VARIABLE_IS_NOT_USED registredEnumAndFlags = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("enumAndFlags",createEnumAndFlagsSerializator); +bool VARIABLE_IS_NOT_USED registredBool = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("bool", createBoolSerializator); +bool VARIABLE_IS_NOT_USED registredQFont = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QFont", createFontSerializator); +bool VARIABLE_IS_NOT_USED registredQSizeF = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QSizeF", createQSizeFSerializator); +bool VARIABLE_IS_NOT_USED registredQImage = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QImage", createQImageSerializator); +bool VARIABLE_IS_NOT_USED registredQReal = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("qreal", createQRealSerializator); +bool VARIABLE_IS_NOT_USED registerDouble = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("double", createQRealSerializator); +bool VARIABLE_IS_NOT_USED registerQColor = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QColor", createQColorSerializator); +bool VARIABLE_IS_NOT_USED registerQByteArray = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QByteArray", createQByteArraySerializator); +bool VARIABLE_IS_NOT_USED registerQVariant = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QVariant", createQVariantSerializator); } diff --git a/limereport/serializators/lrxmlqrectserializator.cpp b/limereport/serializators/lrxmlqrectserializator.cpp index ceac1db..8b5ff09 100644 --- a/limereport/serializators/lrxmlqrectserializator.cpp +++ b/limereport/serializators/lrxmlqrectserializator.cpp @@ -40,12 +40,12 @@ LimeReport::SerializatorIntf * createQRectSerializator(QDomDocument *doc, QDomEl return new LimeReport::XMLQRectSerializator(doc,node); } -LimeReport::SerializatorIntf * createQRectFSerializator(QDomDocument *doc, QDomElement *node){ - return new LimeReport::XMLQRectFSerializator(doc,node); -} +//LimeReport::SerializatorIntf * createQRectFSerializator(QDomDocument *doc, QDomElement *node){ +// return new LimeReport::XMLQRectFSerializator(doc,node); +//} -bool registredQRect = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QRect", createQRectSerializator); -bool registredQRectF = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QRectF", createQRectSerializator); +bool VARIABLE_IS_NOT_USED registredQRect = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QRect", createQRectSerializator); +bool VARIABLE_IS_NOT_USED registredQRectF = LimeReport::XMLAbstractSerializatorFactory::instance().registerCreator("QRectF", createQRectSerializator); }