Assorted cppcheck fixes

Remove member disp_ that is defined both in Cursor and CursorData classes

Pass parameter of convert<T>(docstring const) templates as const reference for performance.
This commit is contained in:
Jean-Marc Lasgouttes 2015-09-14 21:12:16 +02:00
parent 44a004951f
commit b14c0530eb
2 changed files with 5 additions and 7 deletions

View File

@ -95,8 +95,6 @@ public:
protected:
/// the anchor position
DocIterator anchor_;
///
mutable DispatchResult disp_;
/// do we have a selection?
bool selection_;
/// are we on the way to get one?

View File

@ -37,11 +37,11 @@ template<> std::string convert<std::string>(long l);
template<> docstring convert<docstring>(long l);
template<> std::string convert<std::string>(float f);
template<> std::string convert<std::string>(double d);
template<> int convert<int>(std::string const s);
template<> int convert<int>(docstring const s);
template<> unsigned int convert<unsigned int>(std::string const s);
template<> unsigned long convert<unsigned long>(std::string const s);
template<> double convert<double>(std::string const s);
template<> int convert<int>(std::string const & s);
template<> int convert<int>(docstring const & s);
template<> unsigned int convert<unsigned int>(std::string const & s);
template<> unsigned long convert<unsigned long>(std::string const & s);
template<> double convert<double>(std::string const & s);
template<> int convert<int>(char const * cptr);
template<> double convert<double>(char const * cptr);