Skip to content

Commit

Permalink
fix #14494
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 13, 2024
1 parent afec340 commit 31df3b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/utils/options/OptionsCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ OptionsCont::processMetaOptions(bool missingOptions) {
return true;
}

myWriteLicense = getBool("write-license");
// check whether the help shall be printed
if (getBool("help")) {
std::cout << myFullName << std::endl;
Expand Down Expand Up @@ -1021,7 +1020,7 @@ OptionsCont::writeXMLHeader(std::ostream& os, const bool includeConfig) const {
time(&rawtime);
strftime(buffer, 80, "<!-- generated on %F %T by ", localtime(&rawtime));
os << buffer << myFullName << "\n";
if (myWriteLicense) {
if (getBool("write-license")) {
os << "This data file and the accompanying materials\n"
"are made available under the terms of the Eclipse Public License v2.0\n"
"which accompanies this distribution, and is available at\n"
Expand Down
3 changes: 0 additions & 3 deletions src/utils/options/OptionsCont.h
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,6 @@ class OptionsCont {
/// @brief A map from deprecated options to a bool indicating whether we warned about deprecation
mutable std::map<std::string, bool> myDeprecatedSynonymes;

/// @brief Information whether we should always include license information in file headers
bool myWriteLicense;

/// @brief invalid copy constructor
OptionsCont(const OptionsCont& s) = delete;

Expand Down

0 comments on commit 31df3b2

Please sign in to comment.