aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-30 09:46:33 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-30 09:46:33 -0800
commit8e4e30d266dd662b7603bbbf7be175ef49848367 (patch)
treefd3cd7562275d9a41492d1e9199eb27c8b41a5fd /highlight.cpp
parentf988dcd6f99dc2a38917ad7c0a0630e0e4de2e2d (diff)
Migrate functions like parser_keywords_is_block to wcstring
Diffstat (limited to 'highlight.cpp')
-rw-r--r--highlight.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/highlight.cpp b/highlight.cpp
index de20fde3..c1d2f383 100644
--- a/highlight.cpp
+++ b/highlight.cpp
@@ -646,7 +646,7 @@ void tokenize( const wchar_t * const buff, int * const color, const int pos, arr
int mark = tok_get_pos( &tok );
color[ tok_get_pos( &tok ) ] = HIGHLIGHT_COMMAND;
- if( parser_keywords_is_subcommand( cmd.c_str() ) )
+ if( parser_keywords_is_subcommand( cmd ) )
{
int sw;
@@ -668,7 +668,7 @@ void tokenize( const wchar_t * const buff, int * const color, const int pos, arr
sw = parser_keywords_is_switch( tok_last( &tok ) );
- if( !parser_keywords_is_block( cmd.c_str() ) &&
+ if( !parser_keywords_is_block( cmd ) &&
sw == ARG_SWITCH )
{
/*