diff options
author | Ted Gould <ted@gould.cx> | 2015-03-10 16:18:02 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2015-03-10 16:18:02 -0500 |
commit | 5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e (patch) | |
tree | 73bec647407d8e29c7b7f92ebb2f969c7293b01d | |
parent | a3f4a0b948bb282ca016206becb290d0e7656f80 (diff) | |
download | ayatana-indicator-messages-5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e.tar.gz ayatana-indicator-messages-5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e.tar.bz2 ayatana-indicator-messages-5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e.zip |
Pedantic use of auto
-rw-r--r-- | tests/indicator-test.cpp | 2 |
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); } |