* BCountry : add copy constructor and assignment operator

* The locale roster uses them instead of messing with pointers, to avoid ownership problems
 * The Locale preflet works on a copy of the default country instead of altering it directly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2010-07-21 14:09:48 +00:00
parent aea00dc3bc
commit 82a115e8bc
5 changed files with 78 additions and 34 deletions
+2
View File
@@ -36,6 +36,8 @@ class BCountry {
public:
BCountry(const char* languageCode, const char* countryCode);
BCountry(const char* languageAndCountryCode = "en_US");
BCountry(const BCountry& other);
BCountry& operator=(const BCountry& other);
virtual ~BCountry();
virtual bool Name(BString&) const;