summaryrefslogtreecommitdiff
path: root/src/findsubtitles/osparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/findsubtitles/osparser.cpp')
-rw-r--r--src/findsubtitles/osparser.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/findsubtitles/osparser.cpp b/src/findsubtitles/osparser.cpp
index 50c2909..fbe974e 100644
--- a/src/findsubtitles/osparser.cpp
+++ b/src/findsubtitles/osparser.cpp
@@ -1,5 +1,5 @@
/* smplayer, GUI front-end for mplayer.
- Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org>
+ Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -99,8 +99,7 @@ QString OSParser::calculateHash(QString filename) {
in >> a ; hash += a;
};
- QString hexhash("");
- hexhash.setNum(hash,16);
+ QString hexhash = QString("%1").arg(hash, 16, 16, QChar('0'));
return hexhash;
}