#include "prtview.h"
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "profile/profile.h"
#define Q3R_CMD_SHOW_2D "Toggle portals (2D)"
#define Q3R_CMD_OPTIONS "Configure Portal Viewer"
-CopiedString INIfn;
+std::string INIfn;
/////////////////////////////////////////////////////////////////////////////
// CPrtViewApp construction
#define CONFIG_SECTION "Configuration"
-int INIGetInt( char *key, int def ){
+int INIGetInt( const char *key, int def ){
char value[1024];
if ( read_var( INIfn.c_str(), CONFIG_SECTION, key, value ) ) {
}
}
-void INISetInt( char *key, int val, char *comment /* = NULL */ ){
+void INISetInt( const char* key, int val, const char* comment /* = NULL */ ){
char s[1000];
if ( comment ) {