aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/null.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2022-04-06 23:45:42 -0700
committerMike Buland <eichlan@xagasoft.com>2022-04-06 23:45:42 -0700
commit3cbd1038e20dcb2b25db4e74666ec21766642729 (patch)
tree1fab95855d344196a44feadda75bfc0a5a63b61f /c++-qt/src/null.cpp
parentb522669649e81c61c6a5e390991b8fd70bfdeed9 (diff)
downloadlibgats-3cbd1038e20dcb2b25db4e74666ec21766642729.tar.gz
libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.tar.bz2
libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.tar.xz
libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.zip
toString works.
It does indent automatically. I figure, you know, if you're converting to a string then a big part of the reason is so you can read it. In that case, why make it optional?
Diffstat (limited to '')
-rw-r--r--c++-qt/src/null.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/c++-qt/src/null.cpp b/c++-qt/src/null.cpp
index 8bc87a6..5e3a19c 100644
--- a/c++-qt/src/null.cpp
+++ b/c++-qt/src/null.cpp
@@ -27,9 +27,14 @@ void Gats::Null::write( QIODevice &rOut ) const
27 rOut.write("n", 1 ); 27 rOut.write("n", 1 );
28} 28}
29 29
30void Gats::Null::read( QIODevice &rIn, char cType ) 30void Gats::Null::read( QIODevice & /*rIn*/, char /*cType*/ )
31{ 31{
32} 32}
33
34QString Gats::Null::toString( int /*iIndent*/ ) const
35{
36 return "null";
37}
33/* 38/*
34Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Null &b ) 39Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Null &b )
35{ 40{