summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-06-07 19:00:10 +0200
committerGitHub <noreply@github.com>2021-06-07 17:00:10 +0000
commit4cb2b23322794fc684db4f4a9f9e14e0157c83b0 (patch)
treec81c3b2db0deb036c947d0e3cc45475eca725043 /src/printer
parent029e5378cef6a0432c25ebaab044a69440d398cc (diff)
Remove `Options::wasSetByUser()` (#6682)
This PR removes the next heavily specialized template function Options::wasSetByUser() in favor of direct access to the *WasSetByUser flags.
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/printer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp
index 048f5d06b..b733f62ce 100644
--- a/src/printer/printer.cpp
+++ b/src/printer/printer.cpp
@@ -135,12 +135,12 @@ Printer* Printer::getPrinter(OutputLanguage lang)
// the singleton "null" expr. So we guard against segfault
if (not Options::isCurrentNull())
{
- if (Options::current().wasSetByUser(options::outputLanguage))
+ if (Options::current().base.outputLanguageWasSetByUser)
{
lang = options::outputLanguage();
}
if (lang == language::output::LANG_AUTO
- && Options::current().wasSetByUser(options::inputLanguage))
+ && Options::current().base.inputLanguageWasSetByUser)
{
lang = language::toOutputLanguage(options::inputLanguage());
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback