Skip to content

Commit

Permalink
Fix spelling in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
biochimia committed Dec 5, 2010
1 parent dcc7df8 commit 9371ba7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/corelib/io/qfilesystemengine_symbian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ bool QFileSystemEngine::setCurrentPath(const QFileSystemEntry &entry)
if(!abspath.endsWith(QLatin1Char('\\')))
abspath.append(QLatin1Char('\\'));
TInt r = fs.SetSessionPath(qt_QString2TPtrC(abspath));
//SetSessionPath succeeds for non existant directory, which is why it's checked above
//SetSessionPath succeeds for non existent directory, which is why it's checked above
if (r == KErrNone) {
__ASSERT_COMPILE(sizeof(wchar_t) == sizeof(unsigned short));
//attempt to set open C to the same path
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/io/qfilesystemengine_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static QString readLink(const QFileSystemEntry &link)

static bool uncShareExists(const QString &server)
{
// This code asumes the UNC path is always like \\?\UNC\server...
// This code assumes the UNC path is always like \\?\UNC\server...
QStringList parts = server.split(QLatin1Char('\\'), QString::SkipEmptyParts);
if (parts.count() >= 3) {
QStringList shares;
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/qdir/tst_qdir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ void tst_QDir::current()

if (!path.isEmpty()) {
bool b = QDir::setCurrent(path);
// If path is non existant, then setCurrent should be false (currentDir is empty in testData)
// If path is non existent, then setCurrent should be false (currentDir is empty in testData)
QVERIFY(b == !currentDir.isEmpty());
}
if (!currentDir.isEmpty()) {
Expand Down
4 changes: 2 additions & 2 deletions tests/auto/qfile/tst_qfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void tst_QFile::cleanupTestCase()
// attributes and the contents itself
// will be changed as far as we have a
// proper way to handle files in the
// testing enviroment.
// testing environment.
//------------------------------------------

void tst_QFile::exists()
Expand Down Expand Up @@ -1702,7 +1702,7 @@ void tst_QFile::seekAfterEndOfFile()

void tst_QFile::FILEReadWrite()
{
// Tests modifing a file. First creates it then reads in 4 bytes and then overwrites these
// Tests modifying a file. First creates it then reads in 4 bytes and then overwrites these
// 4 bytes with new values. At the end check to see the file contains the new values.

QFile::remove("FILEReadWrite.txt");
Expand Down
8 changes: 4 additions & 4 deletions tests/auto/qfiledialog/tst_qfiledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class MyAbstractItemDelegate : public QAbstractItemDelegate
QSize sizeHint(const QStyleOptionViewItem &, const QModelIndex &) const { return QSize(); }
};

// emited any time the selection model emits current changed
// emitted any time the selection model emits current changed
void tst_QFiledialog::currentChangedSignal()
{
QNonNativeFileDialog fd;
Expand All @@ -212,7 +212,7 @@ void tst_QFiledialog::currentChangedSignal()
QCOMPARE(spyCurrentChanged.count(), 1);
}

// only emited from the views, sidebar, or lookin combo
// only emitted from the views, sidebar, or lookin combo
void tst_QFiledialog::directoryEnteredSignal()
{
#if defined QT_BUILD_INTERNAL
Expand Down Expand Up @@ -273,7 +273,7 @@ void tst_QFiledialog::filesSelectedSignal_data()
QTest::newRow("existingFiles") << QFileDialog::ExistingFiles;
}

// emited when the dialog closes with the selected files
// emitted when the dialog closes with the selected files
void tst_QFiledialog::filesSelectedSignal()
{
QNonNativeFileDialog fd;
Expand Down Expand Up @@ -317,7 +317,7 @@ void tst_QFiledialog::filesSelectedSignal()
QCOMPARE(spyFilesSelected.count(), 1);
}

// only emited when the combo box is activated
// only emitted when the combo box is activated
void tst_QFiledialog::filterSelectedSignal()
{
QNonNativeFileDialog fd;
Expand Down
6 changes: 3 additions & 3 deletions tests/auto/qfileinfo/tst_qfileinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,8 +1653,8 @@ void tst_QFileInfo::owner()
DWORD bufSize = 1024;
if (GetUserNameW(usernameBuf, &bufSize)) {
userName = QString::fromWCharArray(usernameBuf, bufSize);
// Special case : If the user is a member of Adminstrators group, all files
// created by the current user are owned by the Admistrators group.
// Special case : If the user is a member of Administrators group, all files
// created by the current user are owned by the Administrators group.
LPLOCALGROUP_USERS_INFO_0 pBuf = NULL;
DWORD dwLevel = 0;
DWORD dwFlags = LG_INCLUDE_INDIRECT ;
Expand All @@ -1664,7 +1664,7 @@ void tst_QFileInfo::owner()
NET_API_STATUS nStatus;
nStatus = NetUserGetLocalGroups(0, usernameBuf, dwLevel, dwFlags, (LPBYTE *) &pBuf,
dwPrefMaxLen, &dwEntriesRead, &dwTotalEntries);
// Check if the current user is a member of Adminstrators group
// Check if the current user is a member of Administrators group
if (nStatus == NERR_Success && pBuf){
for (int i = 0; i < dwEntriesRead; i++) {
QString groupName = QString::fromWCharArray(pBuf[i].lgrui0_name);
Expand Down

0 comments on commit 9371ba7

Please sign in to comment.