Plugin::Descriptor::SubPluginFeatures: made some methods const

We can safely make fillDescriptionWidget() and listSubPluginKeys()
const methods. Furthermore descriptor pointer to listSubPluginKeys()
can be const as well. Might allow more optimizations by the compiler.
(cherry picked from commit 1c76c77d22)
This commit is contained in:
Tobias Doerffel
2009-08-26 01:10:07 +02:00
parent c2f9fcd14f
commit ba4296136b
5 changed files with 18 additions and 17 deletions

View File

@@ -124,11 +124,12 @@ public:
{
}
virtual void fillDescriptionWidget( QWidget *, const Key * )
virtual void fillDescriptionWidget( QWidget *, const Key * ) const
{
}
virtual void listSubPluginKeys( Plugin::Descriptor *, KeyList & )
virtual void listSubPluginKeys( const Plugin::Descriptor *,
KeyList & ) const
{
}