Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
small improvements in misc places
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Apr 9, 2015
1 parent 2991636 commit 974909a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/qml/property.cpp
@@ -1,5 +1,5 @@
/**
* @file property.cpp
* @file qml/property.cpp
* @brief Statefs property binding
* @copyright (C) 2012-2014 Jolla Ltd.
* @par License: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
Expand Down
2 changes: 1 addition & 1 deletion src/qml/property.hpp
@@ -1,7 +1,7 @@
#ifndef _STATEFS_QML_PROPERTY_HPP_
#define _STATEFS_QML_PROPERTY_HPP_
/**
* @file property.cpp
* @file qml/property.hpp
* @brief Statefs property binding
* @copyright (C) 2012-2014 Jolla Ltd.
* @par License: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
Expand Down
6 changes: 4 additions & 2 deletions tools/monitor/monitor.cpp
Expand Up @@ -23,7 +23,9 @@ static int sigFd[2];
void onExit(int)
{
char a = 1;
::write(sigFd[0], &a, sizeof(a));
if (::write(sigFd[0], &a, sizeof(a)) < 0) {
// ignore
}
}

int usage(QStringList const &args, int rc)
Expand Down Expand Up @@ -51,7 +53,7 @@ void monitorProps(QStringList keys)
for (auto name : keys) {
auto p = new DiscreteProperty(name, app);
app->connect(p, &DiscreteProperty::changed, [name](QVariant v) {
debug::info(name, "=", v);
debug::print(name, "=", v);
});
}
}
Expand Down

0 comments on commit 974909a

Please sign in to comment.