diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-09-01 12:53:04 +0200 |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-09-01 14:26:08 +0200 |
commit | 88ae6dc40e6f725a3dc15056a0b9e8f00d727c09 (patch) | |
tree | 8a578fb7dc1b164bfd417f2c101a444078cb4850 /tests/auto/qfilesystementry | |
parent | d3b152ba1e3cd38dd675c801474105d518bacb44 (diff) |
Breaking changes to QFileSystemEntry's constructors
Since we are using a QString for the native file path on windows, the
constructors we had on other platforms didn't make sense: we can't have
two constructors taking a single QString parameter, and it would be
error prone to have the two argument constructor (taking two QString
parameters, on Windows) change the meaning of the first argument.
This patch introduces a typedef for the NativePath type being used; the
constructor taking the native path now requires a dummy parameter that
makes the intent expliciti; and the order of the arguments on the
constructor taking both native and Qt paths had the order switched.
Done-with: João Abecasis
Diffstat (limited to 'tests/auto/qfilesystementry')
-rw-r--r-- | tests/auto/qfilesystementry/tst_qfilesystementry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qfilesystementry/tst_qfilesystementry.cpp b/tests/auto/qfilesystementry/tst_qfilesystementry.cpp index 58b7c6f687..35389b47b6 100644 --- a/tests/auto/qfilesystementry/tst_qfilesystementry.cpp +++ b/tests/auto/qfilesystementry/tst_qfilesystementry.cpp @@ -140,7 +140,7 @@ void tst_QFileSystemEntry::getSetCheck() QCOMPARE(entry1.isAbsolute(), absolute); QCOMPARE(entry1.isRelative(), !absolute); - QFileSystemEntry entry2(nativeFilePath); + QFileSystemEntry entry2(nativeFilePath, QFileSystemEntry::FromNativePath()); QCOMPARE(entry2.suffix(), suffix); QCOMPARE(entry2.completeSuffix(), completeSuffix); QCOMPARE(entry2.isAbsolute(), absolute); |