summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/MsnEventDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/MsnEventDlg.cpp')
-rw-r--r--StarsEx/MsnEventDlg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/StarsEx/MsnEventDlg.cpp b/StarsEx/MsnEventDlg.cpp
index 268c70c..5940d2c 100644
--- a/StarsEx/MsnEventDlg.cpp
+++ b/StarsEx/MsnEventDlg.cpp
@@ -309,7 +309,7 @@ MsnEventDlg::OnAccept(AWEvent* e)
event->event_nparams = 1;
}
else if (*buf == '(') {
- Parser parser(new BlockReader(buf));
+ Parser parser(starshatter::foundation::Reader{buf});
Term* term = parser.ParseTerm();
if (term && term->isArray()) {
@@ -360,7 +360,7 @@ MsnEventDlg::OnAccept(AWEvent* e)
}
else if (*buf == '(') {
- Parser parser(new BlockReader(buf));
+ Parser parser(starshatter::foundation::Reader{buf});
Term* term = parser.ParseTerm();
if (term && term->isArray()) {