summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-24 04:41:41 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-17 12:37:12 (GMT)
commit69918b07e17cce822ad8f11950da476c42e419ee (patch)
tree2dec5b12c0b4e3702dbdc31b5bee1b72e21ad8e6 /Source/CursesDialog
parent439d2cf9cb79884747b3d3d56f83b044a108c40a (diff)
downloadCMake-69918b07e17cce822ad8f11950da476c42e419ee.zip
CMake-69918b07e17cce822ad8f11950da476c42e419ee.tar.gz
CMake-69918b07e17cce822ad8f11950da476c42e419ee.tar.bz2
cmDocumentationEntry: Drop all user provided ctors for C++ >= 14
There is no need for them cuz: - the last field has a default value - all static instances use 2 arguments convertible to `std::string` - "dynamic" instances used for _Generator_ doc entries access fields diectly using default constructed instance Moreover, compiler may generate move ctor/assign when needed.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index d61954a..18c1a80 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -25,21 +25,23 @@
namespace {
const cmDocumentationEntry cmDocumentationName = {
- nullptr, " ccmake - Curses Interface for CMake."
+ {},
+ " ccmake - Curses Interface for CMake."
};
const cmDocumentationEntry cmDocumentationUsage[2] = {
- { nullptr,
+ { {},
" ccmake <path-to-source>\n"
" ccmake <path-to-existing-build>" },
- { nullptr,
+ { {},
"Specify a source directory to (re-)generate a build system for "
"it in the current working directory. Specify an existing build "
"directory to re-generate its build system." },
};
const cmDocumentationEntry cmDocumentationUsageNote = {
- nullptr, "Run 'ccmake --help' for more information."
+ {},
+ "Run 'ccmake --help' for more information."
};
#ifndef _WIN32