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
703921e2
Commit
703921e2
authored
Aug 21, 2014
by
Marc Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting pass-by-value changes to arithmetic operators.
parent
8fc18489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
types.hpp
modules/core/include/opencv2/core/types.hpp
+16
-12
No files found.
modules/core/include/opencv2/core/types.hpp
View file @
703921e2
...
...
@@ -1320,10 +1320,11 @@ Size_<_Tp>& operator *= (Size_<_Tp>& a, _Tp b)
}
template
<
typename
_Tp
>
static
inline
Size_
<
_Tp
>
operator
*
(
Size_
<
_Tp
>
a
,
_Tp
b
)
Size_
<
_Tp
>
operator
*
(
const
Size_
<
_Tp
>&
a
,
_Tp
b
)
{
a
*=
b
;
return
a
;
Size_
<
_Tp
>
tmp
;
tmp
*=
b
;
return
tmp
;
}
template
<
typename
_Tp
>
static
inline
...
...
@@ -1335,10 +1336,11 @@ Size_<_Tp>& operator /= (Size_<_Tp>& a, _Tp b)
}
template
<
typename
_Tp
>
static
inline
Size_
<
_Tp
>
operator
/
(
Size_
<
_Tp
>
a
,
_Tp
b
)
Size_
<
_Tp
>
operator
/
(
const
Size_
<
_Tp
>&
a
,
_Tp
b
)
{
a
/=
b
;
return
a
;
Size_
<
_Tp
>
tmp
;
tmp
/=
b
;
return
tmp
;
}
template
<
typename
_Tp
>
static
inline
...
...
@@ -1350,10 +1352,11 @@ Size_<_Tp>& operator += (Size_<_Tp>& a, const Size_<_Tp>& b)
}
template
<
typename
_Tp
>
static
inline
Size_
<
_Tp
>
operator
+
(
Size_
<
_Tp
>
a
,
const
Size_
<
_Tp
>&
b
)
Size_
<
_Tp
>
operator
+
(
const
Size_
<
_Tp
>&
a
,
const
Size_
<
_Tp
>&
b
)
{
a
+=
b
;
return
a
;
Size_
<
_Tp
>
tmp
;
tmp
+=
b
;
return
tmp
;
}
template
<
typename
_Tp
>
static
inline
...
...
@@ -1365,10 +1368,11 @@ Size_<_Tp>& operator -= (Size_<_Tp>& a, const Size_<_Tp>& b)
}
template
<
typename
_Tp
>
static
inline
Size_
<
_Tp
>
operator
-
(
Size_
<
_Tp
>
a
,
const
Size_
<
_Tp
>&
b
)
Size_
<
_Tp
>
operator
-
(
const
Size_
<
_Tp
>&
a
,
const
Size_
<
_Tp
>&
b
)
{
a
-=
b
;
return
a
;
Size_
<
_Tp
>
tmp
;
tmp
-=
b
;
return
tmp
;
}
template
<
typename
_Tp
>
static
inline
...
...
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