Optimize NOTIF_WRITE_HARDCODED
authorterencehill <piuntn@gmail.com>
Fri, 8 Feb 2019 22:16:54 +0000 (23:16 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 8 Feb 2019 22:16:54 +0000 (23:16 +0100)
qcsrc/common/notifications/all.qc

index 26b8a2b..1073977 100644 (file)
@@ -794,10 +794,7 @@ void Dump_Notifications(int fh, bool alsoprint)
                ))
 
        #define NOTIF_WRITE_HARDCODED(cvar, default, description) \
-               NOTIF_WRITE(sprintf( \
-                       "seta notification_%s \"%s\" \"%s\"\n", \
-                       cvar, default, description \
-               ))
+               NOTIF_WRITE("seta notification_" cvar " \"" default "\" \"" description "\"\n")
 
        // Note: This warning only applies to the notifications.cfg file that is output...
        // You ARE supposed to manually edit this function to add i.e. hard coded