Code style.

This commit is contained in:
Patrick von Reth 2015-09-10 12:51:12 +02:00
parent 4a9c2123b7
commit d00c6ea013
3 changed files with 6 additions and 6 deletions

View File

@ -97,7 +97,7 @@ Hint &Application::hints()
const Hint &Application::constHints() const
{
return const_cast<Hint&>(const_cast<Application*>(this)->hints());
return const_cast<Hint &>(const_cast<Application *>(this)->hints());
}
QDebug operator<< (QDebug debug, const Snore::Application &app)

View File

@ -139,7 +139,7 @@ Hint &Notification::hints()
const Hint &Notification::constHints() const
{
return const_cast<Hint&>(const_cast<Notification*>(this)->hints());
return const_cast<Hint &>(const_cast<Notification *>(this)->hints());
}
bool Notification::isValid() const

View File

@ -34,11 +34,11 @@ NotifyWidget::NotifyWidget(int pos, const SnoreNotifier *parent) :
QString font = qApp->font().family();
#ifdef Q_OS_WIN
if(QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS8 ) {
if (QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS8) {
font = QLatin1String("Segoe UI Symbol");
}
#if QT_VERSION >= QT_VERSION_CHECK(5,5,0)
if(QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS10) {
if (QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS10) {
font = QLatin1String("Segoe UI Emoji");
}
#endif
@ -112,7 +112,7 @@ void NotifyWidget::display(const Notification &notification)
bool NotifyWidget::acquire()
{
if (!m_mem.isAttached()) {
return true;
return true;
}
bool out = false;
if (m_ready) {
@ -137,7 +137,7 @@ bool NotifyWidget::acquire()
bool NotifyWidget::release()
{
if (!m_mem.isAttached()) {
return true;
return true;
}
bool out = false;
if (!m_ready) {