aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-03-10 16:18:02 -0500
committerTed Gould <ted@gould.cx>2015-03-10 16:18:02 -0500
commit5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e (patch)
tree73bec647407d8e29c7b7f92ebb2f969c7293b01d /tests
parenta3f4a0b948bb282ca016206becb290d0e7656f80 (diff)
downloadayatana-indicator-messages-5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e.tar.gz
ayatana-indicator-messages-5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e.tar.bz2
ayatana-indicator-messages-5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e.zip
Pedantic use of auto
Diffstat (limited to 'tests')
-rw-r--r--tests/indicator-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/indicator-test.cpp b/tests/indicator-test.cpp
index 8f87191..0991db5 100644
--- a/tests/indicator-test.cpp
+++ b/tests/indicator-test.cpp
@@ -98,7 +98,7 @@ TEST_F(IndicatorTest, SingleMessage) {
static void
messageReplyActivate (GObject * obj, gchar * name, GVariant * value, gpointer user_data) {
- std::string * res = reinterpret_cast<std::string *>(user_data);
+ auto res = reinterpret_cast<std::string *>(user_data);
*res = g_variant_get_string(value, nullptr);
}