Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
25361c52
Commit
25361c52
authored
Jan 10, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Symbian: kill warnings, remove unecessary includes and style on path.cpp
parent
c1a3bb47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
src/symbian/path.cpp
src/symbian/path.cpp
+10
-20
No files found.
src/symbian/path.cpp
View file @
25361c52
...
...
@@ -18,14 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <f32file.h>
#include <e32base.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include <string.h>
#include <utf.h>
#include <f32file.h>
/* RFs */
#include <string.h>
/* strlen */
#include <utf.h>
/* CnvUtfConverter */
#include "path.h"
...
...
@@ -62,33 +57,28 @@ extern "C" char * GetConstPrivatePath(void)
size_t
len
;
char
carray
[
KMaxFileName
];
if
(
GetPrivatePath
(
privatePath
)
!=
KErrNone
)
if
(
GetPrivatePath
(
privatePath
)
!=
KErrNone
)
{
goto
defaultreturn
;
return
strdup
(
"C:
\\
Data
\\
Others"
)
;
}
CnvUtfConverter
::
ConvertFromUnicodeToUtf8
(
privatepathutf8
,
privatePath
);
TInt
index
=
0
;
for
(
index
=
0
;
index
<
privatepathutf8
.
Length
();
index
++
)
for
(
index
=
0
;
index
<
privatepathutf8
.
Length
();
index
++
)
{
carray
[
index
]
=
privatepathutf8
[
index
];
}
carray
[
index
]
=
0
;
if
((
len
=
strnlen
((
const
char
*
)
carray
,
KMaxFileName
)
<
KMaxFileName
)
if
((
len
=
strnlen
((
const
char
*
)
carray
,
KMaxFileName
)
<
KMaxFileName
)
)
{
carray
[
len
-
1
]
=
'\0'
;
carray
[
len
-
1
]
=
'\0'
;
return
strdup
((
const
char
*
)
carray
);
}
else
{
goto
defaultreturn
;
return
strdup
(
"C:
\\
Data
\\
Others"
)
;
}
return
strdup
((
const
char
*
)
carray
);
defaultreturn:
return
strdup
(
"C:
\\
Data
\\
Others"
);
}
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