Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (48 sloc) 0.882 kB
#include "message.h"
inline void space( QString & s )
{
if ( ! s.isEmpty() )
s += " ";
}
template <> Message & Message::operator<<( const char * x )
{
space( s );
s += x;
return *this;
}
template <> Message & Message::operator<<( QString x )
{
space( s );
s += "\"" + x + "\"";
return *this;
}
template <> Message & Message::operator<<( QByteArray x )
{
space( s );
s += "\"" + x + "\"";
return *this;
}
template <> Message & Message::operator<<( int x )
{
space( s );
s += QString::number( x );
return *this;
}
template <> Message & Message::operator<<( unsigned int x )
{
space( s );
s += QString::number( x );
return *this;
}
template <> Message & Message::operator<<( double x )
{
space( s );
s += QString::number( x );
return *this;
}
template <> Message & Message::operator<<( float x )
{
space( s );
s += QString::number( x );
return *this;
}
Jump to Line
Something went wrong with that request. Please try again.