passing string by const ref

This commit is contained in:
Matej Sekoranja
2012-08-20 16:36:44 +02:00
parent 99d55ef56b
commit ae718719c3
18 changed files with 316 additions and 88 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ static ChannelProviderMap channelProviders;
class ChannelAccessImpl : public ChannelAccess {
public:
ChannelProvider::shared_pointer getProvider(String providerName) {
ChannelProvider::shared_pointer getProvider(String const & providerName) {
Lock guard(channelProviderMutex);
return channelProviders[providerName];
}