| 1 |
From e8287a030fc8fcec7404aa6731aef21a48035786 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Elyes HAOUAS <[email protected]> |
| 3 |
Date: Tue, 5 Jun 2018 08:41:29 +0200 |
| 4 |
Subject: [PATCH] {src,util}: Use NULL instead of 0 for pointer |
| 5 |
|
| 6 |
Signed-off-by: Elyes HAOUAS <[email protected]> |
| 7 |
--- |
| 8 |
util/kconfig/lxdialog/util.c | 2 +- |
| 9 |
util/kconfig/qconf.h | 8 ++++---- |
| 10 |
2 files changed, 5 insertions(+), 5 deletions(-) |
| 11 |
|
| 12 |
Index: kconfig/lxdialog/util.c |
| 13 |
=================================================================== |
| 14 |
--- kconfig.orig/lxdialog/util.c |
| 15 |
+++ kconfig/lxdialog/util.c |
| 16 |
@@ -370,7 +370,7 @@ void print_autowrap(WINDOW * win, const |
| 17 |
{ |
| 18 |
int newl, cur_x, cur_y; |
| 19 |
int prompt_len, room, wlen; |
| 20 |
- char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0; |
| 21 |
+ char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = NULL; |
| 22 |
|
| 23 |
strcpy(tempstr, prompt); |
| 24 |
|
| 25 |
Index: kconfig/qconf.h |
| 26 |
=================================================================== |
| 27 |
--- kconfig.orig/qconf.h |
| 28 |
+++ kconfig/qconf.h |
| 29 |
@@ -42,7 +42,7 @@ class ConfigList : public QTreeWidget { |
| 30 |
Q_OBJECT |
| 31 |
typedef class QTreeWidget Parent; |
| 32 |
public: |
| 33 |
- ConfigList(QWidget *parent, const char *name = 0); |
| 34 |
+ ConfigList(QWidget *parent, const char *name = NULL); |
| 35 |
~ConfigList(); |
| 36 |
void reinit(void); |
| 37 |
ConfigItem* findConfigItem(struct menu *); |
| 38 |
@@ -188,7 +188,7 @@ class ConfigInfoView : public QTextBrows |
| 39 |
typedef class QTextBrowser Parent; |
| 40 |
QMenu *contextMenu; |
| 41 |
public: |
| 42 |
- ConfigInfoView(QWidget* parent, const char *name = 0); |
| 43 |
+ ConfigInfoView(QWidget* parent, const char *name = NULL); |
| 44 |
bool showDebug(void) const { return _showDebug; } |
| 45 |
|
| 46 |
public slots: |