From 6a4083d28c2b6bd7fd71a4a05359c2f9ec455f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bend=C3=ADk?= Date: Thu, 23 Aug 2012 12:32:59 +0200 Subject: [PATCH] Added ColorMap definition. --- mapper.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mapper.cpp b/mapper.cpp index 384962f..f468569 100644 --- a/mapper.cpp +++ b/mapper.cpp @@ -23,9 +23,11 @@ struct Color { uint8_t b; }; -map parse_colors() +typedef map ColorMap; + +ColorMap parse_colors() { - map parsed; + ColorMap parsed; ifstream in; in.open("colors.txt", ifstream::in); @@ -155,5 +157,5 @@ int main(int argc, char *argv[]) } } - map colors = parse_colors(); + ColorMap colors = parse_colors(); }