From 6d6c50e40e2f8cf68239cd7c58afe59d9bedd970 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Thu, 25 Jul 2019 19:20:22 +0800 Subject: [PATCH] fix: typo in comment --- gio-qt/dgiofile.cpp | 4 ++-- gio-qt/dgiomount.cpp | 2 +- gio-qt/dgiovolume.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gio-qt/dgiofile.cpp b/gio-qt/dgiofile.cpp index ad8dfa8..d845d92 100644 --- a/gio-qt/dgiofile.cpp +++ b/gio-qt/dgiofile.cpp @@ -50,7 +50,7 @@ DGioFile::DGioFile(File* gmmFilePtr, QObject *parent) : QObject(parent) , d_ptr(new DGioFilePrivate(this, gmmFilePtr)) { - // gmountPtr must be vaild; + // gmountPtr must be valid; Q_CHECK_PTR(gmmFilePtr); } @@ -95,7 +95,7 @@ DGioFile *DGioFile::createFromUri(QString uri, QObject *parent) // ensure GIO got initialized Gio::init(); - // File::create_for_path never falls. + // File::create_for_uri never falls. Glib::RefPtr gmmFile = File::create_for_uri(uri.toStdString()); return new DGioFile(gmmFile.release(), parent); diff --git a/gio-qt/dgiomount.cpp b/gio-qt/dgiomount.cpp index 8b095b3..725c707 100644 --- a/gio-qt/dgiomount.cpp +++ b/gio-qt/dgiomount.cpp @@ -61,7 +61,7 @@ DGioMount::DGioMount(Mount* gmmMountPtr, QObject *parent) : QObject(parent) , d_ptr(new DGioMountPrivate(this, gmmMountPtr)) { - // gmountPtr must be vaild; + // gmountPtr must be valid; Q_CHECK_PTR(gmmMountPtr); } diff --git a/gio-qt/dgiovolume.cpp b/gio-qt/dgiovolume.cpp index 4a4f54f..c70c144 100644 --- a/gio-qt/dgiovolume.cpp +++ b/gio-qt/dgiovolume.cpp @@ -48,7 +48,7 @@ DGioVolume::DGioVolume(Volume* gmmVolumePtr, QObject *parent) : QObject(parent) , d_ptr(new DGioVolumePrivate(this, gmmVolumePtr)) { - // gvolumePtr must be vaild; + // gvolumePtr must be valid; Q_CHECK_PTR(gmmVolumePtr); }