[vlc-devel] commit: Qt: reinventing the wheel is always a good solution. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun Jun 21 14:36:24 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jun 21 04:03:26 2009 +0200| [e336cb9c7fb18c17ceaf8393a41363261a754e7c] | committer: Jean-Baptiste Kempf
Qt: reinventing the wheel is always a good solution.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e336cb9c7fb18c17ceaf8393a41363261a754e7c
---
modules/gui/qt4/util/qt_dirs.hpp | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/modules/gui/qt4/util/qt_dirs.hpp b/modules/gui/qt4/util/qt_dirs.hpp
index 5abb7d0..08cad1c 100644
--- a/modules/gui/qt4/util/qt_dirs.hpp
+++ b/modules/gui/qt4/util/qt_dirs.hpp
@@ -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 )
{
More information about the vlc-devel
mailing list