src/history/historymanager.cpp:398:18: style: Variable 'history' can be declared as pointer to const [constVariablePointer]
ViewHistory* history = get_viewhistory( url );
^
src/history/historymanager.cpp:471:18: style: Variable 'history' can be declared as pointer to const [constVariablePointer]
ViewHistory* history = get_viewhistory( url );
^
src/history/historymanager.cpp:480:18: style: Variable 'history' can be declared as pointer to const [constVariablePointer]
ViewHistory* history = get_viewhistory( url );
^
src/history/historymanager.cpp:511:18: style: Variable 'history' can be declared as pointer to const [constVariablePointer]
ViewHistory* history = get_viewhistory( url );
^
src/history/historymanager.cpp:523:18: style: Variable 'history' can be declared as pointer to const [constVariablePointer]
ViewHistory* history = get_viewhistory( url );
^
ローカルのポインター変数にconstを付けられるとcppcheckに指摘されたため修正します。
cppcheck 2.11.1のレポート