Commit f95a6a3c authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use nullptr

parent 5785f734
......@@ -27,7 +27,7 @@
class DisplayNumber : public QLabel {
Q_OBJECT
public:
DisplayNumber(QWidget *parent=0, int digits=0, int prec=0);
DisplayNumber(QWidget *parent=nullptr, int digits=0, int prec=0);
~DisplayNumber() override;
void setFont( const QFont & f );
void setNum(double num);
......
......@@ -32,7 +32,7 @@ class GammaCtrl : public QWidget {
Q_OBJECT
public:
/** construktor */
GammaCtrl(QWidget *parent=0, XVidExtWrap *xvid=0, int channel=0,
GammaCtrl(QWidget *parent=nullptr, XVidExtWrap *xvid=nullptr, int channel=0,
const QString& mingamma="0.40", const QString& maxgamma="3.50",
const QString& setgamma="1.00");
/** destruktor */
......
......@@ -54,7 +54,7 @@ extern "C"
bool test_kgamma()
{
bool retval;
(void) new XVidExtWrap(&retval, NULL);
(void) new XVidExtWrap(&retval, nullptr);
return retval;
}
}
......@@ -66,11 +66,11 @@ K_PLUGIN_FACTORY(KGammaConfigFactory,
KGamma::KGamma(QWidget* parent_P, const QVariantList &) :
KCModule(parent_P),
rootProcess(0)
rootProcess(nullptr)
{
bool ok;
GammaCorrection = false;
xv = new XVidExtWrap(&ok, NULL);
xv = new XVidExtWrap(&ok, nullptr);
if (ok) { /* KDE 4: Uneccessary test, when all KCM wrappers do conditional loading */
xv->getGamma(XVidExtWrap::Red, &ok);
if (ok) {
......
......@@ -29,7 +29,7 @@ class XVidExtWrap {
public:
enum GammaChannel { Value = 0, Red = 1, Green = 2, Blue = 3 };
XVidExtWrap(bool *OK, const char* displayname = NULL);
XVidExtWrap(bool *OK, const char* displayname = nullptr);
~XVidExtWrap();
/** Returns the default screen */
......@@ -43,9 +43,9 @@ class XVidExtWrap {
/** Returns the current screen */
int getScreen() { return screen; };
/** Sets the gamma value on the current screen */
void setGamma( int channel, float gam, bool *OK = NULL );
void setGamma( int channel, float gam, bool *OK = nullptr );
/** Gets the gamma value of the current screen */
float getGamma( int channel, bool *OK = NULL );
float getGamma( int channel, bool *OK = nullptr );
/** Limits the possible gamma values (default 0.1-10.0) */
void setGammaLimits( float min, float max );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment