Skip to content
Permalink
Browse files

Do not shadow identifiers

  • Loading branch information...
richelbilderbeek committed Aug 26, 2017
1 parent 2b69faa commit 255d83af56db211cecb817425f464fb30269d528
Showing with 3 additions and 3 deletions.
  1. +1 −1 Classes/ai.cpp
  2. +1 −1 build_console_test
  3. +1 −1 build_desktop
@@ -149,7 +149,7 @@ double Ai::CalcFinalPayoff(const Character& character) const noexcept
//The rarer an item is discovered, the higher its value
const int sum{
std::accumulate(std::begin(m_tally),std::end(m_tally),0,
[](const int sum,const auto& p) { return sum + p.second; }
[](const int init,const auto& p) { return init + p.second; }
)
};
const double average{static_cast<double>(sum) / 5.0 };
@@ -1,5 +1,5 @@
#!/bin/bash
./build_files.sh
./build_files
cd Console
qmake CityOfThievesConsoleTest.pro
make debug
@@ -1,5 +1,5 @@
#!/bin/bash
./build_files.sh
./build_files
cd Desktop
qmake -qt=qt5
make

0 comments on commit 255d83a

Please sign in to comment.
You can’t perform that action at this time.