Changed: CWordsDictionary::makeResult using references

This commit is contained in:
kervala 2010-06-27 11:37:57 +02:00
parent e0f22bf104
commit c27c28d7c4
2 changed files with 3 additions and 4 deletions

View file

@ -77,7 +77,7 @@ public:
protected:
/// Make a result string
static CSString makeResult( const CSString key, const CSString word );
static CSString makeResult( const CSString &key, const CSString &word );
private:

View file

@ -247,10 +247,9 @@ void CWordsDictionary::exactLookupByKey( const CSString& key, CVectorSString& re
/*
* Make a result string
*/
inline CSString CWordsDictionary::makeResult( const CSString key, const CSString word )
inline CSString CWordsDictionary::makeResult( const CSString &key, const CSString &word )
{
CSString res = key + CSString(": ") + word;
return res;
return key + CSString(": ") + word;
}