Avoid security warning about missused format strings.
Lars Kanis
10 years ago
89 | 89 | } |
90 | 90 | } |
91 | 91 | |
92 | %typemap(in) (const char* message_format, const char* message_string) { | |
93 | $1 = (char*)"%s"; | |
94 | $2 = RSTRING_PTR($input); | |
95 | } | |
96 | ||
92 | 97 | /// Show a modal error message |
93 | static FXuint error(FXWindow* owner,FXuint opts,const char* caption,const char* message); | |
98 | static FXuint error(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
94 | 99 | |
95 | 100 | // Show modal error message, in free floating window. |
96 | static FXuint error(FXApp* app,FXuint opts,const char* caption,const char* message); | |
101 | static FXuint error(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
97 | 102 | |
98 | 103 | /// Show a modal warning message |
99 | static FXuint warning(FXWindow* owner,FXuint opts,const char* caption,const char* message); | |
104 | static FXuint warning(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
100 | 105 | |
101 | 106 | /// Show a modal warning message, in a free-floating window |
102 | static FXuint warning(FXApp* app,FXuint opts,const char* caption,const char* message); | |
107 | static FXuint warning(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
103 | 108 | |
104 | 109 | /// Show a modal question dialog |
105 | static FXuint question(FXWindow* owner,FXuint opts,const char* caption,const char* message); | |
110 | static FXuint question(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
106 | 111 | |
107 | 112 | /// Show a modal question dialog, in a free-floating window |
108 | static FXuint question(FXApp* app,FXuint opts,const char* caption,const char* message); | |
113 | static FXuint question(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
109 | 114 | |
110 | 115 | /// Show a modal information dialog |
111 | static FXuint information(FXWindow* owner,FXuint opts,const char* caption,const char* message); | |
116 | static FXuint information(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
112 | 117 | |
113 | 118 | /// Show a modal information dialog, in a free-floating window |
114 | static FXuint information(FXApp* app,FXuint opts,const char* caption,const char* message); | |
119 | static FXuint information(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string); | |
115 | 120 | |
116 | 121 | // Destructor |
117 | 122 | virtual ~FXMessageBox(); |