~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/map_objects/tribes/production_program.cc

  • Committer: The Widelands Bunnybot
  • Date: 2020-10-18 05:24:54 UTC
  • Revision ID: bunnybot@widelands.org-20201018052454-rm67qrulpbynp0l5
Fix simple cppcheck issues (#4355)

(by gunchleoc)
870c1e137dd3dd6a61306a16e894f8aa54f20b2f

Show diffs side-by-side

added added

removed removed

Lines of Context:
1049
1049
Runs an animation. See :ref:`map_object_programs_animate`.
1050
1050
*/
1051
1051
ProductionProgram::ActAnimate::ActAnimate(const std::vector<std::string>& arguments,
1052
 
                                          ProductionSiteDescr* descr) {
1053
 
        parameters = MapObjectProgram::parse_act_animate(arguments, *descr, false);
 
1052
                                          ProductionSiteDescr* descr)
 
1053
   : parameters(MapObjectProgram::parse_act_animate(arguments, *descr, false)) {
1054
1054
}
1055
1055
 
1056
1056
void ProductionProgram::ActAnimate::execute(Game& game, ProductionSite& ps) const {
1871
1871
Plays a sound effect. See :ref:`map_object_programs_playsound`.
1872
1872
*/
1873
1873
ProductionProgram::ActPlaySound::ActPlaySound(const std::vector<std::string>& arguments,
1874
 
                                              const ProductionSiteDescr& descr) {
1875
 
        parameters = MapObjectProgram::parse_act_play_sound(arguments, descr);
 
1874
                                              const ProductionSiteDescr& descr)
 
1875
   : parameters(MapObjectProgram::parse_act_play_sound(arguments, descr)) {
1876
1876
}
1877
1877
 
1878
1878
void ProductionProgram::ActPlaySound::execute(Game& game, ProductionSite& ps) const {