mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
style fixes: mostly just things that make my eyes bleed :)
This commit is contained in:
@@ -17,7 +17,6 @@ namespace BlackMisc {
|
||||
// Virtual operators: http://stackoverflow.com/a/4571634/356726
|
||||
class CBaseStreamStringifier
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Stream << overload to be used in debugging messages
|
||||
* \param debug
|
||||
@@ -30,9 +29,6 @@ class CBaseStreamStringifier
|
||||
return debug;
|
||||
}
|
||||
|
||||
// msvc2010: friend QDebug &operator<<(QDebug &debug, const CBaseStreamStringifier &uc)
|
||||
// MinGW: No reference
|
||||
|
||||
/*!
|
||||
* \brief Operator << based on text stream
|
||||
* \param textStream
|
||||
@@ -98,7 +94,8 @@ class CBaseStreamStringifier
|
||||
* \param uc
|
||||
* \return
|
||||
*/
|
||||
friend const QDBusArgument &operator>>(const QDBusArgument &argument, CBaseStreamStringifier &uc) {
|
||||
friend const QDBusArgument &operator>>(const QDBusArgument &argument, CBaseStreamStringifier &uc)
|
||||
{
|
||||
argument.beginStructure();
|
||||
uc.unmarshallFromDbus(argument);
|
||||
argument.endStructure();
|
||||
@@ -120,7 +117,6 @@ class CBaseStreamStringifier
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/*!
|
||||
* \brief Virtual destructor
|
||||
*/
|
||||
@@ -129,7 +125,6 @@ public:
|
||||
/*!
|
||||
* \brief Cast as QString
|
||||
* \bool i18n
|
||||
* \remarks operator cast caused too many ambiguity trouble
|
||||
*/
|
||||
QString toQString(bool i18n = false) const
|
||||
{
|
||||
@@ -173,12 +168,11 @@ protected:
|
||||
|
||||
/*!
|
||||
* \brief Copy assignment operator.
|
||||
* This is protected in order to forbid slicing an instance of one derived
|
||||
* class into an instance of a completely unrelated derived class.
|
||||
* \remark This is protected in order to forbid slicing an instance of one derived
|
||||
* class into an instance of a completely unrelated derived class.
|
||||
* \return
|
||||
*/
|
||||
CBaseStreamStringifier& operator=(const CBaseStreamStringifier&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user