From 66b97b4d923274e1b6d2fd97df16cb73d820169b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 30 Mar 2015 21:22:29 -0700 Subject: 996 - string literals --- cpp/011load | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/011load') diff --git a/cpp/011load b/cpp/011load index 696c99f7..1e86ae3d 100644 --- a/cpp/011load +++ b/cpp/011load @@ -35,7 +35,8 @@ recipe_number add_recipe(istream& in) { recipe_number r = Recipe_number[recipe_name]; //? cout << recipe_name << ": adding recipe " << r << '\n'; //? 3 - if (next_word(in) != "[") + skip_whitespace(in); + if (in.get() != '[') raise << "recipe body must begin with '['\n"; skip_comments_and_newlines(in); -- cgit 1.4.1-2-gfad0