forked from organicmaps/organicmaps
Get strings by reference.
This commit is contained in:
parent
2af95203c4
commit
143765428f
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ IntermediateResult::IntermediateResult(m2::RectD const & viewportRect,
|
|||
m_direction = ResultDirection(viewportRect.Center(), m_rect.Center());
|
||||
}
|
||||
|
||||
IntermediateResult::IntermediateResult(string name, string completionString, int penalty)
|
||||
IntermediateResult::IntermediateResult(string const & name, string const & completionString, int penalty)
|
||||
: m_str(name), m_completionString(completionString),
|
||||
m_distance(0), m_direction(0),
|
||||
m_resultType(RESULT_CATEGORY),
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
IntermediateResult(m2::RectD const & viewportRect, double lat, double lon, double precision);
|
||||
|
||||
// For RESULT_CATEGORY.
|
||||
IntermediateResult(string name, string completionString, int penalty);
|
||||
IntermediateResult(string const & name, string const & completionString, int penalty);
|
||||
|
||||
bool operator < (IntermediateResult const & o) const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue