X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=contrib%2Fprtview%2Fprtview.cpp;h=fe9abdc13707cfe3c726e4a55b0185ce9e1415b1;hb=318eb70605627162c9aefbaf240697e800e08bd6;hp=301ac9ea154a8835682c9b22a6a89d3a285ea359;hpb=dac8329952745dbb494bad1c301e44bab05ec0db;p=xonotic%2Fnetradiant.git diff --git a/contrib/prtview/prtview.cpp b/contrib/prtview/prtview.cpp index 301ac9ea..fe9abdc1 100644 --- a/contrib/prtview/prtview.cpp +++ b/contrib/prtview/prtview.cpp @@ -20,7 +20,7 @@ #include "prtview.h" #include -#include +#include #include "profile/profile.h" @@ -43,7 +43,7 @@ #define Q3R_CMD_SHOW_2D "Toggle portals (2D)" #define Q3R_CMD_OPTIONS "Configure Portal Viewer" -CopiedString INIfn; +std::string INIfn; ///////////////////////////////////////////////////////////////////////////// // CPrtViewApp construction @@ -162,7 +162,7 @@ void SaveConfig(){ #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 ) ) { @@ -173,7 +173,7 @@ int INIGetInt( char *key, int def ){ } } -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 ) {