From 6ce762aac4e15213d09fc5b7375b1c62bfcd84d9 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 23 Sep 2012 11:59:55 +0200 Subject: [PATCH] Replace Maxsi::String::Seek with strchr. --- games/asteroids.cpp | 2 +- libmaxsi/readparamstring.cpp | 2 +- sortix/video.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/games/asteroids.cpp b/games/asteroids.cpp index a5e7a5e8..4378aca6 100644 --- a/games/asteroids.cpp +++ b/games/asteroids.cpp @@ -1083,7 +1083,7 @@ char* GetCurrentVideoMode() using namespace Maxsi; extern "C" bool ReadParamString(const char* str, ...) { - if ( String::Seek(str, '\n') ) { errno = EINVAL; } + if ( strchr(str, '\n') ) { errno = EINVAL; } const char* keyname; va_list args; while ( *str ) diff --git a/libmaxsi/readparamstring.cpp b/libmaxsi/readparamstring.cpp index 32af6017..5874f57e 100644 --- a/libmaxsi/readparamstring.cpp +++ b/libmaxsi/readparamstring.cpp @@ -32,7 +32,7 @@ using namespace Maxsi; extern "C" bool ReadParamString(const char* str, ...) { - if ( String::Seek(str, '\n') ) { errno = EINVAL; } + if ( strchr(str, '\n') ) { errno = EINVAL; } const char* keyname; va_list args; while ( *str ) diff --git a/sortix/video.cpp b/sortix/video.cpp index e40bc6bd..4c327aa1 100644 --- a/sortix/video.cpp +++ b/sortix/video.cpp @@ -37,7 +37,7 @@ namespace Sortix { bool ReadParamString(const char* str, ...) { - if ( String::Seek(str, '\n') ) { errno = EINVAL; } + if ( strchr(str, '\n') ) { errno = EINVAL; } const char* keyname; va_list args; while ( *str )