fix: typo in comment

This commit is contained in:
Gary Wang 2019-07-25 19:20:22 +08:00
parent e4f011ff73
commit 6d6c50e40e
3 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ DGioFile::DGioFile(File* gmmFilePtr, QObject *parent)
: QObject(parent) : QObject(parent)
, d_ptr(new DGioFilePrivate(this, gmmFilePtr)) , d_ptr(new DGioFilePrivate(this, gmmFilePtr))
{ {
// gmountPtr must be vaild; // gmountPtr must be valid;
Q_CHECK_PTR(gmmFilePtr); Q_CHECK_PTR(gmmFilePtr);
} }
@ -95,7 +95,7 @@ DGioFile *DGioFile::createFromUri(QString uri, QObject *parent)
// ensure GIO got initialized // ensure GIO got initialized
Gio::init(); Gio::init();
// File::create_for_path never falls. // File::create_for_uri never falls.
Glib::RefPtr<File> gmmFile = File::create_for_uri(uri.toStdString()); Glib::RefPtr<File> gmmFile = File::create_for_uri(uri.toStdString());
return new DGioFile(gmmFile.release(), parent); return new DGioFile(gmmFile.release(), parent);

View file

@ -61,7 +61,7 @@ DGioMount::DGioMount(Mount* gmmMountPtr, QObject *parent)
: QObject(parent) : QObject(parent)
, d_ptr(new DGioMountPrivate(this, gmmMountPtr)) , d_ptr(new DGioMountPrivate(this, gmmMountPtr))
{ {
// gmountPtr must be vaild; // gmountPtr must be valid;
Q_CHECK_PTR(gmmMountPtr); Q_CHECK_PTR(gmmMountPtr);
} }

View file

@ -48,7 +48,7 @@ DGioVolume::DGioVolume(Volume* gmmVolumePtr, QObject *parent)
: QObject(parent) : QObject(parent)
, d_ptr(new DGioVolumePrivate(this, gmmVolumePtr)) , d_ptr(new DGioVolumePrivate(this, gmmVolumePtr))
{ {
// gvolumePtr must be vaild; // gvolumePtr must be valid;
Q_CHECK_PTR(gmmVolumePtr); Q_CHECK_PTR(gmmVolumePtr);
} }