Lukas Werling
08edf3bb58
Enable -Wformat-security for gcc and fix one warning (GH-64)
...
Fedora has -Werror=format-security enabled per default, so enabling and
fixing these warnings is a good idea.
2018-02-06 23:31:50 +01:00
Tushar Maheshwari
a661eab867
Automatic fixes using clang-tidy for header files
...
A follow-up on a previous PR GH-41. The discussion in the forum can be
viewed at http://forum.openclonk.org/topic_show.pl?pid=33086 .
Run clang-tidy (without auto, pass-by-value and using checks) to fix the
header files not modified in the previous PR.
Summary of the changes:
- C++11 member initialization.
- nullptr instead of 0 for pointers.
- override for functions declared virtual in base class.
- default trivial special member functions
2017-05-15 13:46:46 +02:00
Tushar Maheshwari
e58a7884e4
Automatic fixes using clang-tidy
...
See http://forum.openclonk.org/topic_show.pl?tid=3376 for discussion.
Close GH-41
2017-05-03 20:30:45 +02:00
Nicolas Hake
48513291e7
C4ConsoleQtNewScenarioDlg: Avoid std::string conversion ambiguity
2017-03-24 09:08:47 +01:00
Nicolas Hake
007a05468e
C4Scenario: Remove fixed char buffers
2017-03-23 16:35:25 +01:00
Sven Eberhardt
5dfd723708
New scenario dialogue: Redraw definition list after template changed
2017-03-11 14:30:46 -05:00
Nicolas Hake
6386621a4a
Mark an unchanged parameter as const
...
Fixes build on standards-compliant C++ compilers.
2017-03-11 11:35:32 +01:00
Sven Eberhardt
6937969175
Force pre-select definitions specified in [Definitions] section of editor template c4s ( #1898 )
2017-03-11 00:13:49 -05:00
Sven Eberhardt
22306bd266
Editor: Add templates for new scenarios
2017-02-05 16:08:29 -05:00
Sven Eberhardt
04b5f82080
Editor: Add "open in network" to file menu and to new scenario dialogue
2016-11-20 13:24:09 -05:00
Sven Eberhardt
ebda8193ef
Replace NULL by nullptr in C++ sources
...
We don't support pre-C++0x any more, so nullptr should be fine everywhere (except in the plain C source files)
2016-11-02 19:58:02 -04:00
Sven Eberhardt
40abe71a8c
Qt editor: Better placement of PlayerStart object in new scenario
2016-08-06 21:29:26 -04:00
Sven Eberhardt
ec6998e530
Qt Editor: Fix some crashes and errors when switching between object and definition selection
2016-06-17 01:26:38 -04:00
Sven Eberhardt
0767fd2616
Qt Editor: Auto-add PlayerStart object to scenarios created via "New..." option.
2016-06-08 22:27:32 -04:00
Nicolas Hake
9dddf289db
Merge branch 'master' into qteditor
2016-04-03 21:06:32 +02:00
Sven Eberhardt
b1ac208249
Qt Editor: Add "File->New" menu entry
2016-03-22 23:08:05 -04:00