mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Sprinkle some const&
QStringView required more fighting as loads of call sites take a const&
This commit is contained in:
parent
e779f115ef
commit
d6b61f1f54
1 changed files with 5 additions and 5 deletions
|
@ -48,18 +48,18 @@ namespace ContentSelectorModel
|
||||||
void addGameFile(const QString& name) { mGameFiles.append(name); }
|
void addGameFile(const QString& name) { mGameFiles.append(name); }
|
||||||
QVariant fileProperty(const FileProperty prop) const;
|
QVariant fileProperty(const FileProperty prop) const;
|
||||||
|
|
||||||
QString fileName() const { return mFileName; }
|
const QString& fileName() const { return mFileName; }
|
||||||
QString author() const { return mAuthor; }
|
const QString& author() const { return mAuthor; }
|
||||||
QDateTime modified() const { return mModified; }
|
QDateTime modified() const { return mModified; }
|
||||||
QString formatVersion() const { return mVersion; }
|
const QString& formatVersion() const { return mVersion; }
|
||||||
QString filePath() const { return mPath; }
|
const QString& filePath() const { return mPath; }
|
||||||
bool builtIn() const { return mBuiltIn; }
|
bool builtIn() const { return mBuiltIn; }
|
||||||
bool fromAnotherConfigFile() const { return mFromAnotherConfigFile; }
|
bool fromAnotherConfigFile() const { return mFromAnotherConfigFile; }
|
||||||
bool isMissing() const { return mPath.isEmpty(); }
|
bool isMissing() const { return mPath.isEmpty(); }
|
||||||
|
|
||||||
/// @note Contains file names, not paths.
|
/// @note Contains file names, not paths.
|
||||||
const QStringList& gameFiles() const { return mGameFiles; }
|
const QStringList& gameFiles() const { return mGameFiles; }
|
||||||
QString description() const { return mDescription; }
|
const QString& description() const { return mDescription; }
|
||||||
QString toolTip() const
|
QString toolTip() const
|
||||||
{
|
{
|
||||||
if (isMissing())
|
if (isMissing())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue