diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-20 15:19:46 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-20 15:20:10 +0200 |
commit | 50a65604130f9c0aea46799231e88ac956ac018b (patch) | |
tree | 18313ba97554de907a855f9351816b9c226cae8a /Applications/SoundPlayer/main.cpp | |
parent | c34fd10b5bcf1e692cd609b5b156abd70624f7b7 (diff) | |
download | serenity-50a65604130f9c0aea46799231e88ac956ac018b.zip |
LibCore: Convert CTimer to ObjectPtr
Diffstat (limited to 'Applications/SoundPlayer/main.cpp')
-rw-r--r-- | Applications/SoundPlayer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp index 4fe842dfe8..3df9522139 100644 --- a/Applications/SoundPlayer/main.cpp +++ b/Applications/SoundPlayer/main.cpp @@ -52,7 +52,7 @@ int main(int argc, char** argv) auto next_sample_buffer = loader.get_more_samples(); - new CTimer(100, [&] { + auto timer = CTimer::create(100, [&] { if (!next_sample_buffer) { sample_widget->set_buffer(nullptr); return; |