v 0. Pasted by FordPerfect as xml at 2014-12-23 01:55:26 MSK and set expiration to never.

Paste will expire never.

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <results version="2">
  3.     <cppcheck version="1.67"/>
  4.     <errors>
  5.         <error id="invalidPrintfArgType_float" severity="warning" msg="%f in format string (no. 1) requires &amp;#039;double&amp;#039; but the argument type is &amp;#039;long double&amp;#039;." verbose="%f in format string (no. 1) requires &amp;#039;double&amp;#039; but the argument type is &amp;#039;long double&amp;#039;.">
  6.             <location file="algorithm.h" line="35"/>
  7.         </error>
  8.         <error id="assertWithSideEffect" severity="warning" msg="Assert statement calls a function which may have desired side effects: &amp;#039;Point&amp;#039;." verbose="Non-pure function: &amp;#039;Point&amp;#039; is called inside assert statement. Assert statements are removed from release builds so the code inside assert statement is not executed. If the code is needed also in release builds, this is a bug.">
  9.             <location file="point.h" line="59"/>
  10.         </error>
  11.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;f&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;f&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  12.             <location file="point.h" line="12"/>
  13.         </error>
  14.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;f&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;f&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  15.             <location file="point.h" line="13"/>
  16.         </error>
  17.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;f&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;f&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  18.             <location file="point.h" line="17"/>
  19.         </error>
  20.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;f&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;f&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  21.             <location file="point.h" line="18"/>
  22.         </error>
  23.         <error id="operatorEqVarError" severity="warning" msg="Member variable &amp;#039;array::m_size&amp;#039; is not assigned a value in &amp;#039;array::operator=&amp;#039;." verbose="Member variable &amp;#039;array::m_size&amp;#039; is not assigned a value in &amp;#039;array::operator=&amp;#039;.">
  24.             <location file="tbarr.h" line="284"/>
  25.         </error>
  26.         <error id="noConstructor" severity="style" msg="The class &amp;#039;base_array&amp;#039; does not have a constructor." verbose="The class &amp;#039;base_array&amp;#039; does not have a constructor although it has private member variables. Member variables of builtin types are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior.">
  27.             <location file="tbarr.h" line="40"/>
  28.         </error>
  29.         <error id="uninitMemberVar" severity="warning" msg="Member variable &amp;#039;Font::height&amp;#039; is not initialized in the constructor." verbose="Member variable &amp;#039;Font::height&amp;#039; is not initialized in the constructor.">
  30.             <location file="font.h" line="15"/>
  31.         </error>
  32.         <error id="unusedPrivateFunction" severity="style" msg="Unused private function: &amp;#039;Color::UsedBits&amp;#039;" verbose="Unused private function: &amp;#039;Color::UsedBits&amp;#039;">
  33.             <location file="tbal.h" line="80"/>
  34.         </error>
  35.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  36.             <location file="tbal.h" line="99"/>
  37.         </error>
  38.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  39.             <location file="tbal.h" line="100"/>
  40.         </error>
  41.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  42.             <location file="tbal.h" line="101"/>
  43.         </error>
  44.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  45.             <location file="tbal.h" line="102"/>
  46.         </error>
  47.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  48.             <location file="tbal.h" line="103"/>
  49.         </error>
  50.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  51.             <location file="tbal.h" line="104"/>
  52.         </error>
  53.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  54.             <location file="tbal.h" line="107"/>
  55.         </error>
  56.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  57.             <location file="tbal.h" line="108"/>
  58.         </error>
  59.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  60.             <location file="tbal.h" line="109"/>
  61.         </error>
  62.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  63.             <location file="tbal.h" line="110"/>
  64.         </error>
  65.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  66.             <location file="tbal.h" line="111"/>
  67.         </error>
  68.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;c&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;c&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  69.             <location file="tbal.h" line="112"/>
  70.         </error>
  71.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;tc&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;tc&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  72.             <location file="tbal.h" line="182"/>
  73.         </error>
  74.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;src&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;src&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  75.             <location file="tbal.h" line="183"/>
  76.         </error>
  77.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;tc&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;tc&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  78.             <location file="tbal.h" line="191"/>
  79.         </error>
  80.         <error id="passedByValue" severity="performance" msg="Function parameter &amp;#039;src&amp;#039; should be passed by reference." verbose="Parameter &amp;#039;src&amp;#039; is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.">
  81.             <location file="tbal.h" line="198"/>
  82.         </error>
  83.         <error id="unreadVariable" severity="style" msg="Variable &amp;#039;ident&amp;#039; is assigned a value that is never used." verbose="Variable &amp;#039;ident&amp;#039; is assigned a value that is never used.">
  84.             <location file="tbal.cpp" line="395"/>
  85.         </error>
  86.         <error id="uninitMemberVar" severity="warning" msg="Member variable &amp;#039;WinBitmap::currentBuffer&amp;#039; is not initialized in the constructor." verbose="Member variable &amp;#039;WinBitmap::currentBuffer&amp;#039; is not initialized in the constructor.">
  87.             <location file="tbal.cpp" line="684"/>
  88.         </error>
  89.         <error id="useInitializationList" severity="performance" msg="Variable &amp;#039;filename&amp;#039; is assigned in constructor body. Consider performing initialization in initialization list." verbose="When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don&amp;#039;t explicitly write them to the initialization list. You could avoid assigning &amp;#039;filename&amp;#039; a value by passing the value to the constructor in the initialization list.">
  90.             <location file="tbal.cpp" line="1119"/>
  91.         </error>
  92.     </errors>
  93. </results>


Editing is locked.