From 582feeac53aa05f588c8a80bcddf0106ccccb50d Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Sun, 3 Dec 2017 20:58:28 +0300 Subject: [PATCH] fix deprecations --- src/dlangide/tools/d/dmdtrace.d | 1 + src/dlangide/ui/dmdprofilerview.d | 1 + src/dlangide/ui/settings.d | 1 + views/VERSION | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dlangide/tools/d/dmdtrace.d b/src/dlangide/tools/d/dmdtrace.d index eb6bc70..b39c38f 100644 --- a/src/dlangide/tools/d/dmdtrace.d +++ b/src/dlangide/tools/d/dmdtrace.d @@ -219,6 +219,7 @@ private string demangle(string mangled_name) { string demangled_name; // = dlangide.tools.d.demangle.demangle(mangled_name); //if (demangled_name[0] == '_') { // in the unlikely event that we fail to demangle, fall back to the phobos demangler try { + static import core.demangle; if (demangleBuffer.length < mangled_name.length + 16384) demangleBuffer.length = mangled_name.length * 2 + 16384; demangled_name = cast(string)core.demangle.demangle(mangled_name, demangleBuffer[]); diff --git a/src/dlangide/ui/dmdprofilerview.d b/src/dlangide/ui/dmdprofilerview.d index 1dfa165..5475814 100644 --- a/src/dlangide/ui/dmdprofilerview.d +++ b/src/dlangide/ui/dmdprofilerview.d @@ -87,6 +87,7 @@ class TraceFuncionGrid : StringGridWidgetBase { /// get cell text override dstring cellText(int col, int row) { + import std.conv : to; if (row < 0 || row >= _list.length) return ""d; FunctionNode entry = _list[row]; diff --git a/src/dlangide/ui/settings.d b/src/dlangide/ui/settings.d index 07999df..e5af93d 100644 --- a/src/dlangide/ui/settings.d +++ b/src/dlangide/ui/settings.d @@ -62,6 +62,7 @@ StringListValue[] createIntValueList(int[] values, dstring suffix = ""d) { /// create DlangIDE settings pages tree SettingsPage createSettingsPages() { + import std.conv : to; // Root page SettingsPage res = new SettingsPage("", UIString.fromRaw(""d)); diff --git a/views/VERSION b/views/VERSION index b094544..4ea968e 100644 --- a/views/VERSION +++ b/views/VERSION @@ -1 +1 @@ -v0.8.9 \ No newline at end of file +v0.8.10 \ No newline at end of file