Fix spelling errors in method names in QStorageInfo.
The methods retreiveVolumeInfo() and retreiveDiskFreeSpace() should be retrieveVolumeInfo() and retrieveDiskFreeSpace(). Task-number: QTBUG-42068 Change-Id: I86137fbff26c42c8cc8bad366a4733118d6ca292 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
3361fcbc28
commit
4c144d006d
@ -73,14 +73,14 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||||
void retreiveVolumeInfo();
|
void retrieveVolumeInfo();
|
||||||
void retreiveDiskFreeSpace();
|
void retrieveDiskFreeSpace();
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
void retrievePosixInfo();
|
void retrievePosixInfo();
|
||||||
void retrieveUrlProperties(bool initRootPath = false);
|
void retrieveUrlProperties(bool initRootPath = false);
|
||||||
void retrieveLabel();
|
void retrieveLabel();
|
||||||
#elif defined(Q_OS_UNIX)
|
#elif defined(Q_OS_UNIX)
|
||||||
void retreiveVolumeInfo();
|
void retrieveVolumeInfo();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -402,11 +402,11 @@ void QStorageInfoPrivate::doStat()
|
|||||||
if (rootPath.isEmpty())
|
if (rootPath.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
retreiveVolumeInfo();
|
retrieveVolumeInfo();
|
||||||
name = retrieveLabel(device);
|
name = retrieveLabel(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QStorageInfoPrivate::retreiveVolumeInfo()
|
void QStorageInfoPrivate::retrieveVolumeInfo()
|
||||||
{
|
{
|
||||||
QT_STATFSBUF statfs_buf;
|
QT_STATFSBUF statfs_buf;
|
||||||
int result;
|
int result;
|
||||||
|
@ -114,12 +114,12 @@ void QStorageInfoPrivate::doStat()
|
|||||||
if (rootPath.isEmpty())
|
if (rootPath.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
retreiveVolumeInfo();
|
retrieveVolumeInfo();
|
||||||
device = getDevice(rootPath);
|
device = getDevice(rootPath);
|
||||||
retreiveDiskFreeSpace();
|
retrieveDiskFreeSpace();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QStorageInfoPrivate::retreiveVolumeInfo()
|
void QStorageInfoPrivate::retrieveVolumeInfo()
|
||||||
{
|
{
|
||||||
const UINT oldmode = ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
const UINT oldmode = ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ void QStorageInfoPrivate::retreiveVolumeInfo()
|
|||||||
::SetErrorMode(oldmode);
|
::SetErrorMode(oldmode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QStorageInfoPrivate::retreiveDiskFreeSpace()
|
void QStorageInfoPrivate::retrieveDiskFreeSpace()
|
||||||
{
|
{
|
||||||
const UINT oldmode = ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
const UINT oldmode = ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user