Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e336cb9c
Commit
e336cb9c
authored
Jun 21, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: reinventing the wheel is always a good solution.
parent
953140e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
modules/gui/qt4/util/qt_dirs.hpp
modules/gui/qt4/util/qt_dirs.hpp
+3
-12
No files found.
modules/gui/qt4/util/qt_dirs.hpp
View file @
e336cb9c
...
...
@@ -25,18 +25,9 @@
#define _QT_DIR_H_
#include <QString>
/* Replace separators on Windows because Qt is always using / */
static
inline
QString
toNativeSeparators
(
QString
s
)
{
#ifdef WIN32
for
(
int
i
=
0
;
i
<
(
int
)
s
.
length
();
i
++
)
{
if
(
s
[
i
]
==
QLatin1Char
(
'/'
))
s
[
i
]
=
QLatin1Char
(
'\\'
);
}
#endif
return
s
;
}
#include <QDir>
#define toNativeSeparators( s ) QDir::toNativeSeparators ( s )
static
inline
QString
removeTrailingSlash
(
QString
s
)
{
...
...
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