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
f894d1de
Commit
f894d1de
authored
Jul 17, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced unlink() & _unlink() with more standard remove() (ticket #334)
parent
1d93ca00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
loadsave.cpp
modules/highgui/src/loadsave.cpp
+3
-3
anearestneighbors.cpp
tests/cv/src/anearestneighbors.cpp
+2
-2
aio.cpp
tests/cxcore/src/aio.cpp
+1
-5
slmltests.cpp
tests/ml/src/slmltests.cpp
+2
-2
No files found.
modules/highgui/src/loadsave.cpp
View file @
f894d1de
...
...
@@ -332,7 +332,7 @@ imdecode_( const Mat& buf, int flags, int hdrtype, Mat* mat=0 )
if
(
!
decoder
->
readHeader
()
)
{
if
(
filename
)
unlink
(
filename
);
remove
(
filename
);
return
0
;
}
...
...
@@ -374,7 +374,7 @@ imdecode_( const Mat& buf, int flags, int hdrtype, Mat* mat=0 )
bool
code
=
decoder
->
readData
(
*
data
);
if
(
filename
)
unlink
(
filename
);
remove
(
filename
);
if
(
!
code
)
{
...
...
@@ -441,7 +441,7 @@ bool imencode( const string& ext, const Mat& image,
fseek
(
f
,
0
,
SEEK_SET
);
buf
.
resize
(
fread
(
&
buf
[
0
],
1
,
buf
.
size
(),
f
));
fclose
(
f
);
unlink
(
filename
);
remove
(
filename
);
}
return
code
;
}
...
...
tests/cv/src/anearestneighbors.cpp
View file @
f894d1de
...
...
@@ -507,11 +507,11 @@ void CV_FlannSavedIndexTest::createModel(const cv::Mat &data)
}
char
filename
[
50
];
tmpnam
(
filename
);
if
(
filename
[
0
]
==
'\\'
)
filename
[
0
]
=
'_'
;
if
(
filename
[
0
]
==
'\\'
)
filename
[
0
]
=
'_'
;
index
->
save
(
filename
);
createIndex
(
data
,
SavedIndexParams
(
filename
));
unlink
(
filename
);
remove
(
filename
);
}
CV_LSHTest
lsh_test
;
...
...
tests/cxcore/src/aio.cpp
View file @
f894d1de
...
...
@@ -425,11 +425,7 @@ void CV_IOTest::run( int )
}
fs
.
release
();
#ifdef _MSC_VER
_unlink
(
filename
);
#else
unlink
(
filename
);
#endif
remove
(
filename
);
}
}
...
...
tests/ml/src/slmltests.cpp
View file @
f894d1de
...
...
@@ -105,8 +105,8 @@ int CV_SLMLTest::validate_test_results( int testCaseIdx )
f1
.
close
();
f2
.
close
();
// delete temporary files
unlink
(
fname1
);
unlink
(
fname2
);
remove
(
fname1
);
remove
(
fname2
);
// 2. compare responses
CV_Assert
(
test_resps1
.
size
()
==
test_resps2
.
size
()
);
...
...
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