summaryrefslogtreecommitdiff
path: root/gio/src/datainputstream.ccg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-11-19 15:34:10 +0100
committerMurray Cumming <murrayc@murrayc.com>2015-11-20 10:17:05 +0100
commit47d8024cdb18f29eb7def2bb843f0a1a07cef9dd (patch)
tree54cbe5d6dd16cb5f5b4f754efeec02b25fc24398 /gio/src/datainputstream.ccg
parent9b52cea1219d0565bca2e1411a39dbf58b3cf01d (diff)
downloadglibmm-47d8024cdb18f29eb7def2bb843f0a1a07cef9dd.tar.gz
More use of nullptr instead of 0.
Diffstat (limited to 'gio/src/datainputstream.ccg')
-rw-r--r--gio/src/datainputstream.ccg6
1 files changed, 3 insertions, 3 deletions
diff --git a/gio/src/datainputstream.ccg b/gio/src/datainputstream.ccg
index ffc4d97f..2209e48a 100644
--- a/gio/src/datainputstream.ccg
+++ b/gio/src/datainputstream.ccg
@@ -47,7 +47,7 @@ bool DataInputStream::read_line(std::string& line)
GError* gerror = nullptr;
char* c_line = g_data_input_stream_read_line(gobj(),
nullptr, // pass nullptr since we can easily determine the length from the returned std::string
- 0,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -120,7 +120,7 @@ bool DataInputStream::read_until(std::string& data, const std::string& stop_char
char* c_str = g_data_input_stream_read_until(gobj(),
stop_chars.c_str(),
nullptr, // pass nullptr since we can easily determine the length from the returned std::string
- 0,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -194,7 +194,7 @@ bool DataInputStream::read_upto(std::string& data, const std::string& stop_chars
char* c_str = g_data_input_stream_read_upto(gobj(),
stop_chars.c_str(), -1, /* null-terminated */
nullptr, // pass nullptr since we can easily determine the length from the returned std::string
- 0,
+ nullptr,
&gerror);
if(gerror)