diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-26 04:33:29 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-26 04:33:29 -0600 |
commit | 75f10ffe70935187bb900501866a8d555b83a855 (patch) | |
tree | 22e60be53af48fcec8465fef2681e9cd5f8cb36e /hscript/key.cc | |
parent | ca78cc8d66498cccf54ed26d5318f09362859ba7 (diff) | |
download | horizon-75f10ffe70935187bb900501866a8d555b83a855.tar.gz horizon-75f10ffe70935187bb900501866a8d555b83a855.tar.bz2 horizon-75f10ffe70935187bb900501866a8d555b83a855.tar.xz horizon-75f10ffe70935187bb900501866a8d555b83a855.zip |
hscript: Refactor Keys to be owned by a Script*
This means that a Key can introspect its Script.
Diffstat (limited to 'hscript/key.cc')
-rw-r--r-- | hscript/key.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hscript/key.cc b/hscript/key.cc index 6364886..a2d0342 100644 --- a/hscript/key.cc +++ b/hscript/key.cc @@ -3,7 +3,7 @@ * libhscript, the HorizonScript library for * Project Horizon * - * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved. + * Copyright (c) 2019-2020 Adélie Linux and contributors. All rights reserved. * This code is licensed under the AGPL 3.0 license, as noted in the * LICENSE-code file in the root directory of this repository. * @@ -36,12 +36,12 @@ bool Horizon::Keys::BooleanKey::parse(const std::string &what, return true; } -bool Horizon::Keys::BooleanKey::validate(ScriptOptions) const { +bool Horizon::Keys::BooleanKey::validate() const { /* Key will fail init if it is not valid, so this is always a no-op. */ return true; } -bool Horizon::Keys::StringKey::validate(ScriptOptions) const { +bool Horizon::Keys::StringKey::validate() const { /* Key will fail init if it is not valid, so this is always a no-op. */ return true; } |