]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/prtview.cpp
Partial OSX support
[xonotic/netradiant.git] / contrib / prtview / prtview.cpp
index 301ac9ea154a8835682c9b22a6a89d3a285ea359..fe9abdc13707cfe3c726e4a55b0185ce9e1415b1 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "prtview.h"
 #include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
 
 #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 ) {