summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GJsonArrayModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/GJsonArrayModel.cpp')
-rw-r--r--Libraries/LibGUI/GJsonArrayModel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibGUI/GJsonArrayModel.cpp b/Libraries/LibGUI/GJsonArrayModel.cpp
index d819518f92..9a6a7dbc36 100644
--- a/Libraries/LibGUI/GJsonArrayModel.cpp
+++ b/Libraries/LibGUI/GJsonArrayModel.cpp
@@ -4,13 +4,13 @@
void GJsonArrayModel::update()
{
- CFile file(m_json_path);
- if (!file.open(CIODevice::ReadOnly)) {
- dbg() << "Unable to open " << file.filename();
+ auto file = CFile::construct(m_json_path);
+ if (!file->open(CIODevice::ReadOnly)) {
+ dbg() << "Unable to open " << file->filename();
return;
}
- auto json = JsonValue::from_string(file.read_all());
+ auto json = JsonValue::from_string(file->read_all());
ASSERT(json.is_array());
m_array = json.as_array();