mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
44a004951f
commit
b14c0530eb
@ -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?
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user