Getting rid of 'const' warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2229 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -801,8 +801,8 @@ typedef struct starsearch_state
|
|||||||
BOOLEAN SingleClust;
|
BOOLEAN SingleClust;
|
||||||
BOOLEAN SingleMatch;
|
BOOLEAN SingleMatch;
|
||||||
UNICODE Buffer[STAR_SEARCH_BUFSIZE];
|
UNICODE Buffer[STAR_SEARCH_BUFSIZE];
|
||||||
UNICODE *Prefix;
|
const UNICODE *Prefix;
|
||||||
UNICODE *Cluster;
|
const UNICODE *Cluster;
|
||||||
int PrefixLen;
|
int PrefixLen;
|
||||||
int ClusterLen;
|
int ClusterLen;
|
||||||
int ClusterPos;
|
int ClusterPos;
|
||||||
@@ -858,7 +858,8 @@ SplitStarName (STAR_SEARCH_STATE *pSS)
|
|||||||
pSS->ClusterPos = 0;
|
pSS->ClusterPos = 0;
|
||||||
|
|
||||||
// skip leading space
|
// skip leading space
|
||||||
for (next = buf; *next != '\0' && getCharFromString (&next) == ' ';
|
for (next = buf; *next != '\0' &&
|
||||||
|
getCharFromString ((const UNICODE **)&next) == ' ';
|
||||||
buf = next)
|
buf = next)
|
||||||
;
|
;
|
||||||
if (*buf == '\0')
|
if (*buf == '\0')
|
||||||
@@ -869,14 +870,16 @@ SplitStarName (STAR_SEARCH_STATE *pSS)
|
|||||||
pSS->Prefix = buf;
|
pSS->Prefix = buf;
|
||||||
|
|
||||||
// See if player gave a prefix
|
// See if player gave a prefix
|
||||||
for (buf = next; *next != '\0' && getCharFromString (&next) != ' ';
|
for (buf = next; *next != '\0' &&
|
||||||
|
getCharFromString ((const UNICODE **)&next) != ' ';
|
||||||
buf = next)
|
buf = next)
|
||||||
;
|
;
|
||||||
if (*buf != '\0')
|
if (*buf != '\0')
|
||||||
{ // found possibly separating ' '
|
{ // found possibly separating ' '
|
||||||
sep = buf;
|
sep = buf;
|
||||||
// skip separating space
|
// skip separating space
|
||||||
for (buf = next; *next != '\0' && getCharFromString (&next) == ' ';
|
for (buf = next; *next != '\0' &&
|
||||||
|
getCharFromString ((const UNICODE **)&next) == ' ';
|
||||||
buf = next)
|
buf = next)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user