Skip to content

Commit

Permalink
fix ccpcheck : disabling default constructor is a better way to fix n…
Browse files Browse the repository at this point in the history
…oConstructor warnings
  • Loading branch information
cgilles committed May 21, 2018
1 parent 6338b4c commit 179e33f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 18 deletions.
6 changes: 5 additions & 1 deletion core/app/items/digikamimageview_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DigikamImageView::Private : public QObject
public:

explicit Private(DigikamImageView* const qq);
virtual ~Private();
~Private();

void updateOverlays();
void triggerRotateAction(const char* actionName);
Expand All @@ -80,6 +80,10 @@ class DigikamImageView::Private : public QObject
private:

DigikamImageView* q_ptr;

private:

Private() {}; // disable default constuctor.
};

} // namespace Digikam
Expand Down
12 changes: 0 additions & 12 deletions core/app/items/overlays/assignnameoverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,9 @@ class AssignNameOverlay::Private
QPersistentModelIndex index;
};

AssignNameOverlay::AssignNameOverlay()
: PersistentWidgetDelegateOverlay(0),
d(new Private)
{
setup();
}

AssignNameOverlay::AssignNameOverlay(QObject* const parent)
: PersistentWidgetDelegateOverlay(parent),
d(new Private)
{
setup();
}

void AssignNameOverlay::setup()
{
d->filteredModel.setSourceAlbumModel(&d->tagModel);
d->filterModel.setSourceFilterModel(&d->filteredModel);
Expand Down
3 changes: 1 addition & 2 deletions core/app/items/overlays/assignnameoverlay.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class AssignNameOverlay : public PersistentWidgetDelegateOverlay

public:

AssignNameOverlay();
explicit AssignNameOverlay(QObject* const parent);
~AssignNameOverlay();

Expand Down Expand Up @@ -85,7 +84,7 @@ protected Q_SLOTS:

private:

void setup();
AssignNameOverlay() {}; // Disable default constructor.

private:

Expand Down
2 changes: 1 addition & 1 deletion core/libs/album/albumtreeview.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AbstractAlbumTreeView : public QTreeView, public StateSavingObject
* If you give 0 for model, call setAlbumModel afterwards.
* If you supply 0 for filterModel, call setAlbumFilterModel afterwards.
*/
explicit AbstractAlbumTreeView(QWidget* const parent, Flags flags);
AbstractAlbumTreeView(QWidget* const parent, Flags flags);
~AbstractAlbumTreeView();

AbstractSpecificAlbumModel* albumModel() const;
Expand Down
2 changes: 1 addition & 1 deletion core/libs/imageproperties/versionsdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class VersionsDelegate : public QStyledItemDelegate, public ImageDelegateOverlay

public:

explicit VersionsDelegate(QObject* const parent = 0);
VersionsDelegate(QObject* const parent = 0);
~VersionsDelegate();

QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
Expand Down
2 changes: 1 addition & 1 deletion project/reports/cppcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ cppcheck-htmlreport --file=report.cppcheck.xml \
--report-dir=$REPORT_DIR \
--source-dir=. \
--title=$TITLE

exit
# update www.digikam.org report section.
updateReportToWebsite "cppcheck" $REPORT_DIR $TITLE $(parseGitBranch)

Expand Down

0 comments on commit 179e33f

Please sign in to comment.