diff --git a/src/dlangui/core/settings.d b/src/dlangui/core/settings.d index 6f287fd9..ba0f32ff 100644 --- a/src/dlangui/core/settings.d +++ b/src/dlangui/core/settings.d @@ -489,7 +489,7 @@ final class Setting { /// read as string value - @property inout(string) str() inout { + @property string str() { final switch(_type) with(SettingType) { case STRING: return _store.str; @@ -510,7 +510,7 @@ final class Setting { } } /// read as string value - inout(string) strDef(string defValue) inout { + inout (string) strDef(inout (string) defValue) { final switch(_type) with(SettingType) { case STRING: return _store.str; @@ -2313,5 +2313,3 @@ final class Setting { } } } - - diff --git a/src/dlangui/platforms/ansi_console/dconsole.d b/src/dlangui/platforms/ansi_console/dconsole.d index 5d83fb98..7023c044 100644 --- a/src/dlangui/platforms/ansi_console/dconsole.d +++ b/src/dlangui/platforms/ansi_console/dconsole.d @@ -280,7 +280,7 @@ class Console { break; } if (readBufPos > 0 && isSequenceCompleted()) { - string s = readBuf[0 .. readBufPos].dup; + string s = readBuf[0 .. readBufPos].idup; readBufPos = 0; return s; }