mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 13:46:13 +00:00
Changed: CWordsDictionary::makeResult using references
This commit is contained in:
parent
0a02feec2c
commit
db4dbc8232
2 changed files with 3 additions and 4 deletions
|
@ -77,7 +77,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/// Make a result string
|
/// Make a result string
|
||||||
static CSString makeResult( const CSString key, const CSString word );
|
static CSString makeResult( const CSString &key, const CSString &word );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -247,10 +247,9 @@ void CWordsDictionary::exactLookupByKey( const CSString& key, CVectorSString& re
|
||||||
/*
|
/*
|
||||||
* Make a result string
|
* 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 key + CSString(": ") + word;
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue