From d534a56d95bca7bdd812be024d9eacba4734e2b7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 17:20:11 +0000 Subject: Many changes: tabconv'd the C++ code, added a license, BSD, and docs. --- c++-qt/src/integer.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'c++-qt/src/integer.cpp') diff --git a/c++-qt/src/integer.cpp b/c++-qt/src/integer.cpp index 82727f3..721c434 100644 --- a/c++-qt/src/integer.cpp +++ b/c++-qt/src/integer.cpp @@ -1,12 +1,19 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libgats library and is released under the + * terms of the license contained in the file LICENSE. + */ + #include "gats-qt/integer.h" Gats::Integer::Integer() : - iVal( 0 ) + iVal( 0 ) { } Gats::Integer::Integer( int64_t iVal ) : - iVal( iVal ) + iVal( iVal ) { } @@ -16,22 +23,22 @@ Gats::Integer::~Integer() Gats::Object *Gats::Integer::clone() const { - return new Gats::Integer( iVal ); + return new Gats::Integer( iVal ); } void Gats::Integer::write( QIODevice &rOut ) const { - rOut.write("i", 1 ); - writePackedInt( rOut, iVal ); + rOut.write("i", 1 ); + writePackedInt( rOut, iVal ); } void Gats::Integer::read( QIODevice &rIn, char cType ) { - readPackedInt( rIn, iVal ); + readPackedInt( rIn, iVal ); } /* Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i ) { - return f << "(int) " << i.getValue(); + return f << "(int) " << i.getValue(); } */ -- cgit v1.2.3