aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-21 11:45:13 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-21 11:45:13 -0800
commit237cf19a7752602025c5eb131e47088882a59db4 (patch)
tree67d0ef3050f2de4be18551d3c5482d4a980db2ea /reader.h
parent2206e221bd58b19141872c062012b6a9db0d73a2 (diff)
Switch to using std::vector instead of int* for colors in highlight.cpp, for better range bounds checking
Diffstat (limited to 'reader.h')
-rw-r--r--reader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.h b/reader.h
index c38f1aa8..2b2d110d 100644
--- a/reader.h
+++ b/reader.h
@@ -138,7 +138,7 @@ void reader_set_complete_function( void (*f)( const wchar_t *, std::vector<compl
The type of a highlight function.
*/
class env_vars;
-typedef void (*highlight_function_t)( const wchar_t *, int *, int, wcstring_list_t *, const env_vars &vars );
+typedef void (*highlight_function_t)( const wchar_t *, std::vector<int> &, int, wcstring_list_t *, const env_vars &vars );
/**
Specify function for syntax highlighting. The function must take these arguments: