From e050c0c6781d3d3e8957fe0fc2cc9d6cf9ca7267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 25 May 2011 15:48:34 +0000 Subject: [PATCH] * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41741 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/locale/Country.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/kits/locale/Country.cpp b/src/kits/locale/Country.cpp index 585238132a..235ed2bcd8 100644 --- a/src/kits/locale/Country.cpp +++ b/src/kits/locale/Country.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2003-2009, Axel Dörfler, axeld@pinc-software.de. + * Copyright 2003-2011, Axel Dörfler, axeld@pinc-software.de. * Copyright 2009-2010, Adrien Destugues, pulkomandy@gmail.com. * Distributed under the terms of the MIT License. */ @@ -114,10 +114,7 @@ BCountry::Code() const status_t BCountry::GetIcon(BBitmap* result) const { - const char* code = fICULocale->getCountry(); - if (code == NULL) - return B_ERROR; - return BLocaleRoster::Default()->GetFlagIconForCountry(result, code); + return BLocaleRoster::Default()->GetFlagIconForCountry(result, Code()); }