From bc96a55e48642a048eb32525c26b93fb5c0353f1 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Wed, 7 Jun 2017 10:55:26 +0300 Subject: [PATCH] fix deprecation warnings in example1 - UIString.fromRaw --- examples/example1/src/example1.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/example1/src/example1.d b/examples/example1/src/example1.d index fcb4f4b5..e5a50cf9 100644 --- a/examples/example1/src/example1.d +++ b/examples/example1/src/example1.d @@ -378,7 +378,7 @@ extern (C) int UIAppMain(string[] args) { window.close(); return true; } else if (a.id == 41) { - window.showMessageBox(UIString("About"d), UIString("DLangUI demo app\n(C) Vadim Lopatin, 2014\nhttp://github.com/buggins/dlangui"d)); + window.showMessageBox(UIString.fromRaw("About"d), UIString.fromRaw("DLangUI demo app\n(C) Vadim Lopatin, 2014\nhttp://github.com/buggins/dlangui"d)); return true; } else if (a.id == ACTION_FILE_OPEN) { UIString caption; @@ -409,12 +409,12 @@ extern (C) int UIAppMain(string[] args) { tabs.selectTab(filename); } else { destroy(editor); - window.showMessageBox(UIString("File open error"d), UIString("Cannot open file "d ~ toUTF32(filename))); + window.showMessageBox(UIString.fromRaw("File open error"d), UIString.fromRaw("Cannot open file "d ~ toUTF32(filename))); } } } else { Log.d("FileDialog.onDialogResult: ", result, " param=", result.stringParam); - window.showMessageBox(UIString("FileOpen result"d), UIString("Filename: "d ~ toUTF32(filename))); + window.showMessageBox(UIString.fromRaw("FileOpen result"d), UIString.fromRaw("Filename: "d ~ toUTF32(filename))); } } }