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
7dcbf325
Commit
7dcbf325
authored
Jun 18, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed WString related build problem in Android build
parent
3b55e0d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
core.hpp
modules/core/include/opencv2/core/core.hpp
+4
-1
persistence.cpp
modules/core/src/persistence.cpp
+1
-1
No files found.
modules/core/include/opencv2/core/core.hpp
View file @
7dcbf325
...
...
@@ -85,7 +85,6 @@ template<typename _Tp, int cn> class CV_EXPORTS Vec;
template
<
typename
_Tp
,
int
m
,
int
n
>
class
CV_EXPORTS
Matx
;
typedef
std
::
string
String
;
typedef
std
::
basic_string
<
wchar_t
>
WString
;
class
Mat
;
class
SparseMat
;
...
...
@@ -110,8 +109,12 @@ template<typename _Tp> class CV_EXPORTS MatIterator_;
template
<
typename
_Tp
>
class
CV_EXPORTS
MatConstIterator_
;
template
<
typename
_Tp
>
class
CV_EXPORTS
MatCommaInitializer_
;
#if !defined(ANDROID) || (defined(_GLIBCXX_USE_WCHAR_T) && _GLIBCXX_USE_WCHAR_T)
typedef
std
::
basic_string
<
wchar_t
>
WString
;
CV_EXPORTS
string
fromUtf16
(
const
WString
&
str
);
CV_EXPORTS
WString
toUtf16
(
const
string
&
str
);
#endif
CV_EXPORTS
string
format
(
const
char
*
fmt
,
...
);
CV_EXPORTS
string
tempfile
(
const
char
*
suffix
CV_DEFAULT
(
0
));
...
...
modules/core/src/persistence.cpp
View file @
7dcbf325
...
...
@@ -151,7 +151,7 @@ cv::string cv::FileStorage::getDefaultObjectName(const string& _filename)
namespace
cv
{
#if !defined(ANDROID) ||
defined(
_GLIBCXX_USE_WCHAR_T)
#if !defined(ANDROID) ||
(defined(_GLIBCXX_USE_WCHAR_T) &&
_GLIBCXX_USE_WCHAR_T)
string
fromUtf16
(
const
WString
&
str
)
{
cv
::
AutoBuffer
<
char
>
_buf
(
str
.
size
()
*
4
+
1
);
...
...
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