Remove unused argument

The mode argument (third argument to (_)open) is only used when
(_)O_CREAT is also specified. As we're opening the file read-only it is
unused and unnecessary.

Change-Id: Icc16edec5a7d44c57ad02865048c56114c39d4bc
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
João Abecasis 2012-03-27 13:07:10 +02:00 committed by Qt by Nokia
parent 7a0793114b
commit 8fd09f456a

View File

@ -458,13 +458,7 @@ bool QTranslatorPrivate::do_load(const QString &realname)
int fd = -1; int fd = -1;
if (!realname.startsWith(QLatin1Char(':'))) if (!realname.startsWith(QLatin1Char(':')))
fd = QT_OPEN(QFile::encodeName(realname), O_RDONLY, fd = QT_OPEN(QFile::encodeName(realname), O_RDONLY);
#if defined(Q_OS_WIN)
_S_IREAD | _S_IWRITE
#else
0666
#endif
);
if (fd >= 0) { if (fd >= 0) {
QT_STATBUF st; QT_STATBUF st;
if (!QT_FSTAT(fd, &st)) { if (!QT_FSTAT(fd, &st)) {