Use Qt::Literals::StringLiterals

This commit is contained in:
Jonas Kvinge
2024-10-18 20:17:23 +02:00
parent 6931538ebf
commit 0e330b81db
156 changed files with 160 additions and 172 deletions

View File

@@ -38,7 +38,7 @@
#include "devicemanager.h"
#include "deviceinfo.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
using std::make_shared;
ConnectedDevice::ConnectedDevice(const QUrl &url, DeviceLister *lister, const QString &unique_id, SharedPtr<DeviceManager> manager, Application *app, const int database_id, const bool first_time, QObject *parent)

View File

@@ -38,7 +38,7 @@
#include "core/scopedtransaction.h"
#include "devicedatabasebackend.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr int kDeviceSchemaVersion = 5;

View File

@@ -34,7 +34,7 @@
#include "devicedatabasebackend.h"
#include "deviceinfo.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
DeviceDatabaseBackend::Device DeviceInfo::SaveToDb() const {

View File

@@ -37,7 +37,7 @@
#include "core/logging.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
DeviceLister::DeviceLister(QObject *parent)
: QObject(parent),

View File

@@ -82,7 +82,7 @@
# include "gpoddevice.h"
#endif
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
using std::make_unique;
const int DeviceManager::kDeviceIconSize = 32;

View File

@@ -67,7 +67,7 @@
#include "deviceproperties.h"
#include "deviceview.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
using std::make_unique;
const int DeviceItemDelegate::kIconPadding = 6;

View File

@@ -47,7 +47,7 @@
#include "devicelister.h"
#include "giolister.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
QString GioLister::DeviceInfo::unique_id() const {

View File

@@ -44,7 +44,7 @@
#include "mtploader.h"
#include "mtpconnection.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
class DeviceLister;
class DeviceManager;

View File

@@ -54,7 +54,7 @@
#include "udisks2filesystem.h"
#include "udisks2job.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
using std::make_unique;
using std::make_shared;