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:
parent
7a0793114b
commit
8fd09f456a
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user