From ed13a1012482b0b7e996d44508dd4769968c2497 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Wed, 5 Oct 2016 14:26:08 +0900 Subject: [PATCH] Rename methods --- src/handlers/xdgurl.cpp | 8 ++++---- src/handlers/xdgurl.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index a018ddb..8d0f0b6 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -17,8 +17,8 @@ XdgUrl::XdgUrl(const QString &xdgUrl, Core::Config *appConfig, Core::Config *use QObject(parent), _xdgUrl(xdgUrl), _appConfig(appConfig), _userConfig(userConfig), _asyncNetwork(asyncNetwork) { _metadata = _parse(); - _destinations = _importDestinations(); - _archiveTypes = _importArchiveTypes(); + _destinations = _loadDestinations(); + _archiveTypes = _loadArchiveTypes(); } QJsonObject XdgUrl::_parse() @@ -77,7 +77,7 @@ QString XdgUrl::_convertPathString(const QString &path) return newPath; } -QJsonObject XdgUrl::_importDestinations() +QJsonObject XdgUrl::_loadDestinations() { QJsonObject destinations; QJsonObject appConfigDestinations = _appConfig->get("destinations"); @@ -114,7 +114,7 @@ QJsonObject XdgUrl::_importDestinations() return destinations; } -QJsonObject XdgUrl::_importArchiveTypes() +QJsonObject XdgUrl::_loadArchiveTypes() { QJsonObject archiveTypes; QJsonObject appConfigArchiveTypes = _appConfig->get("archive_types"); diff --git a/src/handlers/xdgurl.h b/src/handlers/xdgurl.h index 15f162b..e89df2d 100644 --- a/src/handlers/xdgurl.h +++ b/src/handlers/xdgurl.h @@ -33,8 +33,8 @@ public: private: QJsonObject _parse(); QString _convertPathString(const QString &path); - QJsonObject _importDestinations(); - QJsonObject _importArchiveTypes(); + QJsonObject _loadDestinations(); + QJsonObject _loadArchiveTypes(); bool _installPlasmapkg(const QString &path, const QString &type = "plasmoid"); bool _uncompressArchive(const QString &path, const QString &targetDir); bool _download(); -- GitLab