History

Update ScriptEngine.cpp

DWORD is not defined in UNIX based systems. int should be fine

Thijs Wenker committed 12 years ago

Commit 825acbb1 parent 5d812c81 file · +1 −1Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−1
@@ -93,7 +93,7 @@ ScriptEngine::ScriptEngine(const QUrl& scriptURL, · 92 unmodified lines
93 QUrl url(scriptURL);93 QUrl url(scriptURL);
94 94
95 // if the scheme length is one or lower, maybe they typed in a file, let's try95 // if the scheme length is one or lower, maybe they typed in a file, let's try
96 const DWORD WINDOWS_DRIVE_LETTER_SIZE = 1;96 const int WINDOWS_DRIVE_LETTER_SIZE = 1;
97 if (url.scheme().size() <= WINDOWS_DRIVE_LETTER_SIZE) {97 if (url.scheme().size() <= WINDOWS_DRIVE_LETTER_SIZE) {
98 url = QUrl::fromLocalFile(scriptURLString);98 url = QUrl::fromLocalFile(scriptURLString);
99 }99 }