Mark two member functions const

Change-Id: I42266689ccac2d0234eb0b047d2dc949e6f59196
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Sérgio Martins 2015-05-28 20:24:42 +01:00
parent ac4b28ce4d
commit db54498fd1
3 changed files with 4 additions and 4 deletions

View File

@ -236,9 +236,9 @@ QTemporaryFileEngine::~QTemporaryFileEngine()
QFSFileEngine::close();
}
bool QTemporaryFileEngine::isReallyOpen()
bool QTemporaryFileEngine::isReallyOpen() const
{
Q_D(QFSFileEngine);
Q_D(const QFSFileEngine);
if (!((0 == d->fh) && (-1 == d->fd)
#if defined Q_OS_WIN

View File

@ -95,7 +95,7 @@ public:
~QTemporaryFileEngine();
bool isReallyOpen();
bool isReallyOpen() const;
void setFileName(const QString &file);
void setFileTemplate(const QString &fileTemplate);

View File

@ -64,7 +64,7 @@ public:
QString domain;
QString user;
QString password;
bool isNull() {
bool isNull() const {
return domain.isNull() && user.isNull() && password.isNull();
}
};