Skip to content

Commit aa688fb

Browse files
committed
Merge pull request #1793 from mshabunin:fix-minor-warnings
2 parents c0ea1d2 + a0ad83f commit aa688fb

18 files changed

+51
-56
lines changed

modules/cvv/CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
if(NOT HAVE_QT5)
1+
if(NOT HAVE_QT5 OR NOT HAVE_CXX11)
22
ocv_module_disable(cvv)
33
return()
44
endif()
55

66
set(the_description "Debug visualization framework")
77
ocv_add_module(cvv opencv_core opencv_imgproc opencv_features2d WRAP python)
88

9-
# we need C++11 and want warnings:
10-
if(MSVC)
11-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qstd=c++11 /W4")
12-
add_definitions(/D__func__=__FUNCTION__)
13-
else()
14-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")
15-
endif()
169
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wmissing-declarations)
1710

1811
# Qt5

modules/cvv/src/gui/call_window.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private slots:
153153

154154
void initFooter();
155155

156-
void closeEvent(QCloseEvent *event);
156+
void closeEvent(QCloseEvent *event) CV_OVERRIDE;
157157

158158
size_t getCallTabIdByTabIndex(int index);
159159

modules/cvv/src/gui/main_call_window.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MainCallWindow : public CallWindow
5656
void hideCloseWindow();
5757

5858
protected:
59-
void closeEvent(QCloseEvent *event);
59+
void closeEvent(QCloseEvent *event) CV_OVERRIDE;
6060

6161
private:
6262
OverviewPanel *ovPanel;

modules/cvv/src/gui/overview_group_subtable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class OverviewGroupSubtable : public QWidget
7878
void setRowGroup(stfl::ElementGroup<OverviewTableRow> &newGroup);
7979

8080
protected:
81-
void resizeEvent(QResizeEvent *event);
81+
void resizeEvent(QResizeEvent *event) CV_OVERRIDE;
8282

8383
private slots:
8484
void rowClicked(int row, int collumn);

modules/cvv/src/qtutil/filter/diffFilterWidget.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ class DiffFilterFunction : public FilterFunctionWidget<2, 1>
5454
* @param in Array of input matrices
5555
* @param out Array of output matrices
5656
*/
57-
void applyFilter(InputArray in, OutputArray out) const;
57+
void applyFilter(InputArray in, OutputArray out) const CV_OVERRIDE;
5858

5959
/**
6060
* @brief Checks whether matrices in 'in' can be processed by this
6161
* DiffFilter
6262
*/
63-
std::pair<bool, QString> checkInput(InputArray in) const;
63+
std::pair<bool, QString> checkInput(InputArray in) const CV_OVERRIDE;
6464

6565
private:
6666
DiffFilterType filterType_;

modules/cvv/src/qtutil/filter/overlayfilterwidget.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ class OverlayFilterWidget : public FilterFunctionWidget<2, 1>
4444
* @param in Array of input matrices
4545
* @param out Array of output matrices
4646
*/
47-
void applyFilter(InputArray in, OutputArray out) const;
47+
void applyFilter(InputArray in, OutputArray out) const CV_OVERRIDE;
4848

4949
/**
5050
* Checks whether the matrices have the same size and same number of
5151
* channels.
5252
* @brief Checks whether matrices in "in" can be processed by Overlayfilter
5353
* @param in Array of input matrices
5454
*/
55-
std::pair<bool, QString> checkInput(InputArray in) const;
55+
std::pair<bool, QString> checkInput(InputArray in) const CV_OVERRIDE;
5656

5757
private:
5858
double opacityOfFilterImg_;

modules/cvv/src/qtutil/matchview/cvvkeypoint.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CVVKeyPoint : public QGraphicsObject,public cv::KeyPoint
5252
* @brief boundingRect
5353
* @return the boundingRect
5454
*/
55-
QRectF boundingRect() const;
55+
QRectF boundingRect() const CV_OVERRIDE;
5656

5757
/**
5858
* @brief returns the keypoint
@@ -65,7 +65,7 @@ class CVVKeyPoint : public QGraphicsObject,public cv::KeyPoint
6565
* @brief the paint function.
6666
*/
6767
void paint(QPainter *painter, const QStyleOptionGraphicsItem *,
68-
QWidget *);
68+
QWidget *) CV_OVERRIDE;
6969

7070
/**
7171
* @brief returns true if this keypoint is in the visble area of its

modules/cvv/src/qtutil/matchview/cvvmatch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ class CVVMatch : public QGraphicsObject,public cv::DMatch
4848
* @brief returns the boundingrect of this Mathc
4949
* @return the boundingrect of this Mathc
5050
*/
51-
virtual QRectF boundingRect() const;
51+
virtual QRectF boundingRect() const CV_OVERRIDE;
5252

5353
/**
5454
* @brief the paint function
5555
*/
5656
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *,
57-
QWidget *);
57+
QWidget *) CV_OVERRIDE;
5858

5959
/**
6060
* @brief returns the left keypoint.

modules/cvv/src/qtutil/matchview/keypointmanagement.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class KeyPointManagement : public KeyPointSettings
3636
/**
3737
* @brief set the settings if this KeyPoint is selected
3838
*/
39-
virtual void setSettings(CVVKeyPoint &match);
39+
virtual void setSettings(CVVKeyPoint &match) CV_OVERRIDE;
4040

4141
/**
4242
* @brief add the given KeyPointSettingsSelector to the list

modules/cvv/src/qtutil/matchview/keypointselectionselector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class KeyPointSelectionSelector:public KeyPointSelection,public RegisterHelper<K
2828
* @brief select keypoint of the given selection
2929
* @return the selected matches
3030
*/
31-
std::vector<cv::KeyPoint> select(const std::vector<cv::KeyPoint>& selection);
31+
std::vector<cv::KeyPoint> select(const std::vector<cv::KeyPoint>& selection) CV_OVERRIDE;
3232

3333
public slots:
3434
/**

0 commit comments

Comments
 (0)