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
4d45b3e7
Commit
4d45b3e7
authored
Jul 04, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Jul 04, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1089 from SpecLad:contract-violations
parents
70deda35
0daf4b80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
cvstd.hpp
modules/core/include/opencv2/core/cvstd.hpp
+2
-0
command_line_parser.cpp
modules/core/src/command_line_parser.cpp
+4
-9
No files found.
modules/core/include/opencv2/core/cvstd.hpp
View file @
4d45b3e7
...
...
@@ -580,6 +580,8 @@ String::~String()
inline
String
&
String
::
operator
=
(
const
String
&
str
)
{
if
(
&
str
==
this
)
return
*
this
;
deallocate
();
if
(
str
.
cstr_
)
CV_XADD
(((
int
*
)
str
.
cstr_
)
-
1
,
1
);
cstr_
=
str
.
cstr_
;
...
...
modules/core/src/command_line_parser.cpp
View file @
4d45b3e7
...
...
@@ -136,18 +136,13 @@ void CommandLineParser::getByIndex(int index, bool space_delete, int type, void*
static
bool
cmp_params
(
const
CommandLineParserParams
&
p1
,
const
CommandLineParserParams
&
p2
)
{
if
(
p1
.
number
<
p2
.
number
)
return
true
;
if
(
p1
.
number
>
p2
.
number
)
return
false
;
if
(
p1
.
number
==
-
1
&&
p2
.
number
==
-
1
)
{
if
(
p1
.
keys
[
0
].
compare
(
p2
.
keys
[
0
])
>
0
)
{
return
false
;
}
}
return
true
;
return
p1
.
keys
[
0
].
compare
(
p2
.
keys
[
0
])
<
0
;
}
CommandLineParser
::
CommandLineParser
(
int
argc
,
const
char
*
const
argv
[],
const
String
&
keys
)
...
...
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