Replace use of c++ keyword 'default' in c++ code and C APIs. Also correct obsolete use of qualified name in member declaration.

This commit is contained in:
Philip Lamb 2020-12-16 11:36:55 +13:00
parent 3bf1085c72
commit 1471a6dc80
5 changed files with 7 additions and 7 deletions

View file

@ -152,10 +152,10 @@ Servo::PromptResult prompt_yes_no(const char *message, bool trusted) {
return sServo->Delegate().OnServoPromptYesNo(char2hstring(message), trusted);
}
const char *prompt_input(const char *message, const char *default,
const char *prompt_input(const char *message, const char *def,
bool trusted) {
auto input = sServo->Delegate().OnServoPromptInput(
char2hstring(message), char2hstring(default), trusted);
char2hstring(message), char2hstring(def), trusted);
if (input.has_value()) {
return *hstring2char(*input);
} else {