Skip to content

Commit

Permalink
Growl notifications: Fix attempts to pass std::string instead of cons…
Browse files Browse the repository at this point in the history
…t char*

This is required on OS X due to the recent return type changes for the
gettext functions.
  • Loading branch information
mattsc committed Oct 27, 2014
1 parent 652dce4 commit 9b2f9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_display.cpp
Expand Up @@ -953,7 +953,7 @@ void game_display::send_notification(const std::string& /*owner*/, const std::st
CFStringRef cf_owner = CFStringCreateWithCString(NULL, owner.c_str(), kCFStringEncodingUTF8);
CFStringRef cf_message = CFStringCreateWithCString(NULL, message.c_str(), kCFStringEncodingUTF8);
//Should be changed as soon as there are more than 2 types of notifications
CFStringRef cf_note_name = CFStringCreateWithCString(NULL, owner == _("Turn changed") ? _("Turn changed") : _("Chat message"), kCFStringEncodingUTF8);
CFStringRef cf_note_name = CFStringCreateWithCString(NULL, owner == _("Turn changed") ? _("Turn changed").c_str() : _("Chat message").c_str(), kCFStringEncodingUTF8);

growl_obj.applicationName = app_name;
growl_obj.registrationDictionary = NULL;
Expand Down

0 comments on commit 9b2f9a6

Please sign in to comment.