[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xmlChar uglyness
From: |
Ingo Ruhnke |
Subject: |
xmlChar uglyness |
Date: |
09 Sep 2002 18:35:02 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Shouldn't something like:
else if (!strcmp(reinterpret_cast<const char*>(cur->name), "hotspot"))
better be written like:
else if (XMLHelper::equal_str (cur->name, "hotspot"))
with:
bool
XMLHelper::equal_str (xmlChar* a, const char*)
{
return !strcmp(reinterpret_cast<const char*>(cur->name), "hotspot");
}
...or something like that? Having dozens of reinterpret_cast<> in the
code is not really what I want.
--
WWW: http://pingus.seul.org/~grumbel/
Games: http://pingus.seul.org/~grumbel/gamedesigns/
JabberID: address@hidden
ICQ: 59461927
- xmlChar uglyness,
Ingo Ruhnke <=
- Prev by Date:
Re: [Pingus-CVS] CVS: Games/Pingus/src story.cxx,1.7,1.8 story.hxx,1.7,1.8
- Next by Date:
Re: [Pingus-CVS] CVS: Games/Pingus/src story.cxx,1.7,1.8 story.hxx,1.7,1.8
- Previous by thread:
Re: [Pingus-CVS] CVS: Games/Pingus/src surface_button.cxx,1.12,1.13
- Next by thread:
Re: xmlChar uglyness
- Index(es):