summaryrefslogtreecommitdiffstats
path: root/src/app/slider.cpp
diff options
context:
space:
mode:
authormio <[email protected]>2024-08-22 19:34:23 +1000
committermio <[email protected]>2024-08-22 23:15:20 +1000
commited55bf072682ebf73239e74b7e3dd286ed5616a5 (patch)
treef13875c92a1b0cd5ba8d925ac5f2c6413e9ccc6d /src/app/slider.cpp
parent5e965846d17f7053dca99f3366ce5d8f21e8f649 (diff)
downloadcodeine-ed55bf072682ebf73239e74b7e3dd286ed5616a5.tar.gz
codeine-ed55bf072682ebf73239e74b7e3dd286ed5616a5.zip
Use nullptr instead of NULL/0 pointer in C++ files
See: https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/73 Signed-off-by: mio <[email protected]>
Diffstat (limited to 'src/app/slider.cpp')
-rw-r--r--src/app/slider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/slider.cpp b/src/app/slider.cpp
index 172c15d..997f8db 100644
--- a/src/app/slider.cpp
+++ b/src/app/slider.cpp
@@ -14,7 +14,7 @@
using Codeine::Slider;
-Slider *Slider::s_instance = 0;
+Slider *Slider::s_instance = nullptr;
Slider::Slider( TQWidget *parent, uint max )
@@ -106,8 +106,8 @@ static inline TQString timeAsString( const int s )
void
Slider::setValue( int newValue )
{
- static TQLabel *w1 = 0;
- static TQLabel *w2 = 0;
+ static TQLabel *w1 = nullptr;
+ static TQLabel *w2 = nullptr;
if (!w1) {
w1 = new TQLabel( this );