clang-tidy: Apply readability-const-return-type
This commit is contained in:
committed by
Johannes Lorenz
parent
f89d52fa21
commit
22eb7a1364
@@ -154,7 +154,7 @@ public:
|
||||
float valueAt( const TimePos & _time ) const;
|
||||
float *valuesAfter( const TimePos & _time ) const;
|
||||
|
||||
const QString name() const;
|
||||
QString name() const;
|
||||
|
||||
// settings-management
|
||||
void saveSettings( QDomDocument & _doc, QDomElement & _parent ) override;
|
||||
|
||||
@@ -47,7 +47,7 @@ class LMMS_EXPORT PluginFactory
|
||||
public:
|
||||
struct PluginInfo
|
||||
{
|
||||
const QString name() const;
|
||||
QString name() const;
|
||||
QFileInfo file;
|
||||
std::shared_ptr<QLibrary> library = nullptr;
|
||||
Plugin::Descriptor* descriptor = nullptr;
|
||||
@@ -67,8 +67,8 @@ public:
|
||||
static PluginFactory* instance();
|
||||
|
||||
/// Returns a list of all found plugins' descriptors.
|
||||
const Plugin::DescriptorList descriptors() const;
|
||||
const Plugin::DescriptorList descriptors(Plugin::PluginTypes type) const;
|
||||
Plugin::DescriptorList descriptors() const;
|
||||
Plugin::DescriptorList descriptors(Plugin::PluginTypes type) const;
|
||||
|
||||
struct PluginInfoAndKey
|
||||
{
|
||||
@@ -80,12 +80,12 @@ public:
|
||||
/// Returns a list of all found plugins' PluginFactory::PluginInfo objects.
|
||||
const PluginInfoList& pluginInfos() const;
|
||||
/// Returns a plugin that support the given file extension
|
||||
const PluginInfoAndKey pluginSupportingExtension(const QString& ext);
|
||||
PluginInfoAndKey pluginSupportingExtension(const QString& ext);
|
||||
|
||||
/// Returns the PluginInfo object of the plugin with the given name.
|
||||
/// If the plugin is not found, an empty PluginInfo is returned (use
|
||||
/// PluginInfo::isNull() to check this).
|
||||
const PluginInfo pluginInfo(const char* name) const;
|
||||
PluginInfo pluginInfo(const char* name) const;
|
||||
|
||||
/// When loading a library fails during discovery, the error string is saved.
|
||||
/// It can be retrieved by calling this function.
|
||||
|
||||
Reference in New Issue
Block a user