FbString: fix build without iconv

Commit 690d926 (introduced FbTk::BidiString) broke building without
HAVE_ICONV, because of wrong variable name and use of iconv_t type.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2011-09-09 20:41:17 +02:00 committed by Mathias Gumz
parent f9df3ffeda
commit b9e9eb4e44

View file

@ -150,6 +150,7 @@ enum ConvType { FB2X = 0, X2FB, LOCALE2FB, FB2LOCALE, CONVSIZE };
#ifdef HAVE_ICONV
static iconv_t *iconv_convs = 0;
#else
typedef int iconv_t;
static int iconv_convs[CONVSIZE];
#endif // HAVE_ICONV
@ -292,7 +293,7 @@ string recode(iconv_t cd, const string &in) {
return ret;
#else
return str;
return in;
#endif // HAVE_ICONV
}