summaryrefslogtreecommitdiff
path: root/graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-26 03:03:59 +0000
committerNorbert Preining <norbert@preining.info>2024-03-26 03:03:59 +0000
commit904f56f2c26edc7eb11d5a27579bccbeca29c618 (patch)
tree8a4d6d2e163e93dd2c13a28db996b419aee856b4 /graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h
parent05f8146ef2eea2cd71b9c96583c6d893e6c76af5 (diff)
CTAN sync 202403260303
Diffstat (limited to 'graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h')
-rw-r--r--graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h b/graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h
index 26afc484b6..c8920e4492 100644
--- a/graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h
+++ b/graphics/asymptote/LspCpp/include/LibLsp/lsp/ClientPreferences.h
@@ -88,7 +88,11 @@ public:
bool isTrue(const optional<bool>& value)
{
- return value.get_value_or(false);
+ if (value) {
+ return *value;
+ } else {
+ return false;
+ }
}
bool isRenameDynamicRegistrationSupported() {