minor improvements

This commit is contained in:
wmayer
2016-12-10 13:24:43 +01:00
parent 503c4d00c0
commit e8c7df1d67
4 changed files with 7 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ bool ExtensionContainer::hasExtension(Base::Type t) const {
return true;
}
bool ExtensionContainer::hasExtension(std::string name) const {
bool ExtensionContainer::hasExtension(const std::string& name) const {
//and for types derived from it, as they can be cast to the extension
for(auto entry : _extensions) {
@@ -115,7 +115,7 @@ bool ExtensionContainer::hasExtensions() const {
return !_extensions.empty();
}
Extension* ExtensionContainer::getExtension(std::string name) {
Extension* ExtensionContainer::getExtension(const std::string& name) {
//and for types derived from it, as they can be cast to the extension
for(auto entry : _extensions) {