summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-01-27 10:55:10 +0100
committerAndreas Kling <kling@serenityos.org>2020-01-27 10:55:10 +0100
commit6906edee9a89619eefbea614983fa0c61d20c8a7 (patch)
tree747858f7635aacd5724e8735a42707f9edff2964 /Applications/SystemMonitor/main.cpp
parent137a45dff2a6c60dbca34ee6b1e27ff476fe9b40 (diff)
downloadserenity-6906edee9a89619eefbea614983fa0c61d20c8a7.zip
LibGUI: Add 64-bit signed integer support to GVariant
What was previously the "Int" type is now "Int32" and "Int64".
Diffstat (limited to 'Applications/SystemMonitor/main.cpp')
-rw-r--r--Applications/SystemMonitor/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp
index 578e0b47f1..8a551a0567 100644
--- a/Applications/SystemMonitor/main.cpp
+++ b/Applications/SystemMonitor/main.cpp
@@ -258,7 +258,7 @@ public:
virtual void paint(GPainter& painter, const Rect& a_rect, const Palette& palette, const GModel& model, const GModelIndex& index) override
{
auto rect = a_rect.shrunken(2, 2);
- auto percentage = model.data(index, GModel::Role::Custom).to_int();
+ auto percentage = model.data(index, GModel::Role::Custom).to_i32();
auto data = model.data(index, GModel::Role::Display);
String text;