Commit cee094ee203fb16abd46e6bf3a238487dde0101d

Add g_return_{val}_if_fail assertions
  
4646 const gchar *buf,
4747 guint32 len)
4848{
49 g_return_val_if_fail (cd != NULL, 0);
4950 CharsetDetector *impl = reinterpret_cast <CharsetDetector*> (cd);
5051 return impl -> HandleData (buf, len);
5152}
5555void
5656g_chardet_free (g_chardet_t cd)
5757{
58 g_return_if_fail (cd != NULL);
5859 CharsetDetector *impl = reinterpret_cast <CharsetDetector*> (cd);
5960 delete impl;
6061}
6363const gchar*
6464g_chardet_charset (g_chardet_t cd)
6565{
66 g_return_val_if_fail (cd != NULL, NULL);
6667 CharsetDetector *impl = reinterpret_cast <CharsetDetector*> (cd);
6768 return (impl -> mCharsetFound) ? impl -> GetCharset() : NULL;
6869}
7272gboolean
7373g_chardet_found (g_chardet_t cd)
7474{
75 g_return_val_if_fail (cd != NULL, FALSE);
7576 CharsetDetector *impl = reinterpret_cast <CharsetDetector*> (cd);
7677 return impl -> mCharsetFound;
7778}
8080void
8181g_chardet_finish (g_chardet_t cd)
8282{
83 g_return_if_fail (cd != NULL);
8384 CharsetDetector *impl = reinterpret_cast <CharsetDetector*> (cd);
8485 impl -> DataEnd ();
8586}