Time to get rid of the horrible coding style
This commit is contained in:
parent
534ee610d8
commit
efc594f888
53 changed files with 1137 additions and 1136 deletions
|
@ -39,17 +39,17 @@ Error::Error()
|
|||
: _int(new InternalError)
|
||||
{}
|
||||
|
||||
Error::Error(InternalError& i)
|
||||
Error::Error(InternalError &i)
|
||||
: _int(new InternalError(i))
|
||||
{}
|
||||
|
||||
Error::Error( const char* name, const char* message )
|
||||
Error::Error(const char *name, const char *message)
|
||||
: _int(new InternalError)
|
||||
{
|
||||
set(name, message);
|
||||
}
|
||||
|
||||
Error::Error( Message& m )
|
||||
Error::Error(Message &m)
|
||||
: _int(new InternalError)
|
||||
{
|
||||
dbus_set_error_from_message(&(_int->error), m._pvt->msg);
|
||||
|
@ -59,12 +59,12 @@ Error::~Error() throw()
|
|||
{
|
||||
}
|
||||
|
||||
const char* Error::name() const
|
||||
const char *Error::name() const
|
||||
{
|
||||
return _int->error.name;
|
||||
}
|
||||
|
||||
const char* Error::message() const
|
||||
const char *Error::message() const
|
||||
{
|
||||
return _int->error.message;
|
||||
}
|
||||
|
@ -74,12 +74,12 @@ bool Error::is_set() const
|
|||
return *(_int);
|
||||
}
|
||||
|
||||
void Error::set( const char* name, const char* message )
|
||||
void Error::set(const char *name, const char *message)
|
||||
{
|
||||
dbus_set_error_const(&(_int->error), name, message);
|
||||
}
|
||||
|
||||
const char* Error::what() const throw()
|
||||
const char *Error::what() const throw()
|
||||
{
|
||||
return _int->error.message;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue