From 05d177737c980aad2fcdb54765433e02021ab1e0 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 7 May 2015 15:49:40 -0700 Subject: 1299 - stop using [] in any vector Useful check: $ grep "[^ '\"]\[[^\"]" *.cc \ |perl -pwe 's/\Wargv\[|\WTests\[|\Wframe\[|\WMemory\[|\WName\[|\WSurrounding_space\[|\WRecipe\[|\WType\[|\WRecipe_number\[|\WType_number\[|\WBefore_fragments\[|\WAfter_fragments\[//g' \ |perl -pwe 's/\Wargv\[|\WTests\[|\Wframe\[|\WMemory\[|\WName\[|\WSurrounding_space\[|\WRecipe\[|\WType\[|\WRecipe_number\[|\WType_number\[|\WBefore_fragments\[|\WAfter_fragments\[//g' \ |grep '[^ ]\[' --- 035call.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '035call.cc') diff --git a/035call.cc b/035call.cc index c88a16db..57c1513d 100644 --- a/035call.cc +++ b/035call.cc @@ -65,7 +65,7 @@ inline const string& current_recipe_name() { } :(replace{} "inline const instruction& current_instruction()") inline const instruction& current_instruction() { - return Recipe[Current_routine->calls.top().running_recipe].steps[Current_routine->calls.top().running_step_index]; + return Recipe[Current_routine->calls.top().running_recipe].steps.at(Current_routine->calls.top().running_step_index); } :(replace{} "default:" following "End Primitive Recipe Implementations") -- cgit 1.4.1-2-gfad0