FocusableList.cc,.hh: Pass string arguments by const reference.
Found by cppcheck
This commit is contained in:
parent
85596c1ee2
commit
5d56046b68
2 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,7 @@ const FocusableList *FocusableList::getListFromOptions(BScreen &scr, int opts) {
|
|||
&scr.focusControl().focusedOrderList();
|
||||
}
|
||||
|
||||
FocusableList::FocusableList(BScreen &scr, const string pat):
|
||||
FocusableList::FocusableList(BScreen &scr, const string & pat):
|
||||
m_pat(0), m_parent(0), m_screen(scr) {
|
||||
|
||||
int options = 0;
|
||||
|
@ -86,7 +86,7 @@ FocusableList::FocusableList(BScreen &scr, const string pat):
|
|||
}
|
||||
|
||||
FocusableList::FocusableList(BScreen &scr, const FocusableList &parent,
|
||||
const string pat):
|
||||
const string & pat):
|
||||
m_pat(new ClientPattern(pat.c_str())), m_parent(&parent), m_screen(scr) {
|
||||
|
||||
init();
|
||||
|
|
|
@ -49,9 +49,9 @@ public:
|
|||
};
|
||||
|
||||
FocusableList(BScreen &scr): m_pat(0), m_parent(0), m_screen(scr) { }
|
||||
FocusableList(BScreen &scr, const std::string pat);
|
||||
FocusableList(BScreen &scr, const std::string & pat);
|
||||
FocusableList(BScreen &scr, const FocusableList &parent,
|
||||
const std::string pat);
|
||||
const std::string & pat);
|
||||
|
||||
static void parseArgs(const std::string &in, int &opts, std::string &out);
|
||||
static const FocusableList *getListFromOptions(BScreen &scr, int opts);
|
||||
|
|
Loading…
Reference in a new issue