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
f8c45473
Commit
f8c45473
authored
Mar 04, 2015
by
Dmitry-Me
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dangerous string manipulation, merge declaration with assignment
parent
62b88958
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
system.cpp
modules/core/src/system.cpp
+2
-6
No files found.
modules/core/src/system.cpp
View file @
f8c45473
...
...
@@ -549,13 +549,9 @@ String tempfile( const char* suffix )
#if defined WIN32 || defined _WIN32
#ifdef WINRT
RoInitialize
(
RO_INIT_MULTITHREADED
);
std
::
wstring
temp_dir
=
L""
;
const
wchar_t
*
opencv_temp_dir
=
GetTempPathWinRT
().
c_str
();
if
(
opencv_temp_dir
)
temp_dir
=
std
::
wstring
(
opencv_temp_dir
);
std
::
wstring
temp_dir
=
GetTempPathWinRT
();
std
::
wstring
temp_file
;
temp_file
=
GetTempFileNameWinRT
(
L"ocv"
);
std
::
wstring
temp_file
=
GetTempFileNameWinRT
(
L"ocv"
);
if
(
temp_file
.
empty
())
return
String
();
...
...
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