Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a3b19719
Commit
a3b19719
authored
Oct 15, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring back escaped virtual destructors from 2.4.2
parent
3ffe0f01
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
OpenCVCompilerOptions.cmake
cmake/OpenCVCompilerOptions.cmake
+7
-1
core.hpp
modules/core/include/opencv2/core/core.hpp
+6
-2
matrix.cpp
modules/core/src/matrix.cpp
+4
-0
any.h
modules/flann/include/opencv2/flann/any.h
+3
-0
motion_stabilizing.hpp
...ideostab/include/opencv2/videostab/motion_stabilizing.hpp
+2
-0
No files found.
cmake/OpenCVCompilerOptions.cmake
View file @
a3b19719
...
...
@@ -56,12 +56,18 @@ if(MINGW)
endif
()
endif
()
if
(
OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
)
add_definitions
(
-DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX
)
# High level of warnings.
add_extra_compiler_option
(
-W
)
add_extra_compiler_option
(
-Wall
)
add_extra_compiler_option
(
-Werror=return-type
)
#add_extra_compiler_option(-Werror=non-virtual-dtor)
if
(
OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
)
add_extra_compiler_option
(
-Werror=non-virtual-dtor
)
endif
()
add_extra_compiler_option
(
-Werror=address
)
add_extra_compiler_option
(
-Werror=sequence-point
)
add_extra_compiler_option
(
-Wformat
)
...
...
modules/core/include/opencv2/core/core.hpp
View file @
a3b19719
...
...
@@ -1345,7 +1345,9 @@ public:
virtual
int
channels
(
int
i
=-
1
)
const
;
virtual
bool
empty
()
const
;
/*virtual*/
~
_InputArray
();
#ifdef OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
virtual
~
_InputArray
();
#endif
int
flags
;
void
*
obj
;
...
...
@@ -1407,7 +1409,9 @@ public:
virtual
void
release
()
const
;
virtual
void
clear
()
const
;
/*virtual*/
~
_OutputArray
();
#ifdef OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
virtual
~
_OutputArray
();
#endif
};
typedef
const
_InputArray
&
InputArray
;
...
...
modules/core/src/matrix.cpp
View file @
a3b19719
...
...
@@ -917,7 +917,9 @@ void scalarToRawData(const Scalar& s, void* _buf, int type, int unroll_to)
\*************************************************************************************************/
_InputArray
::
_InputArray
()
:
flags
(
0
),
obj
(
0
)
{}
#ifdef OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
_InputArray
::~
_InputArray
()
{}
#endif
_InputArray
::
_InputArray
(
const
Mat
&
m
)
:
flags
(
MAT
),
obj
((
void
*
)
&
m
)
{}
_InputArray
::
_InputArray
(
const
vector
<
Mat
>&
vec
)
:
flags
(
STD_VECTOR_MAT
),
obj
((
void
*
)
&
vec
)
{}
_InputArray
::
_InputArray
(
const
double
&
val
)
:
flags
(
FIXED_TYPE
+
FIXED_SIZE
+
MATX
+
CV_64F
),
obj
((
void
*
)
&
val
),
sz
(
Size
(
1
,
1
))
{}
...
...
@@ -1281,7 +1283,9 @@ bool _InputArray::empty() const
_OutputArray
::
_OutputArray
()
{}
#ifdef OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
_OutputArray
::~
_OutputArray
()
{}
#endif
_OutputArray
::
_OutputArray
(
Mat
&
m
)
:
_InputArray
(
m
)
{}
_OutputArray
::
_OutputArray
(
vector
<
Mat
>&
vec
)
:
_InputArray
(
vec
)
{}
_OutputArray
::
_OutputArray
(
gpu
::
GpuMat
&
d_mat
)
:
_InputArray
(
d_mat
)
{}
...
...
modules/flann/include/opencv2/flann/any.h
View file @
a3b19719
...
...
@@ -47,7 +47,10 @@ struct base_any_policy
virtual
::
size_t
get_size
()
=
0
;
virtual
const
std
::
type_info
&
type
()
=
0
;
virtual
void
print
(
std
::
ostream
&
out
,
void
*
const
*
src
)
=
0
;
#ifdef OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
virtual
~
base_any_policy
()
{}
#endif
};
template
<
typename
T
>
...
...
modules/videostab/include/opencv2/videostab/motion_stabilizing.hpp
View file @
a3b19719
...
...
@@ -56,7 +56,9 @@ namespace videostab
class
CV_EXPORTS
IMotionStabilizer
{
public
:
#ifdef OPENCV_CAN_BREAK_BINARY_COMPATIBILITY
virtual
~
IMotionStabilizer
()
{}
#endif
// assumes that [0, size-1) is in or equals to [range.first, range.second)
virtual
void
stabilize
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment