utf8_helper.cpp
changeset 269 26c8597fe860
parent 47 a364a7231af7
child 364 2259aa4c6a64
     1.1 --- a/utf8_helper.cpp	Thu Feb 01 23:30:55 2018 +0100
     1.2 +++ b/utf8_helper.cpp	Fri Feb 02 22:03:16 2018 +0100
     1.3 @@ -48,9 +48,9 @@
     1.4          {
     1.5              if (bstr == NULL)
     1.6                  return "";
     1.7 -            
     1.8 +
     1.9              _bstr_t _bstr(bstr);
    1.10 -            wstring wstr = (wchar_t *) _bstr;
    1.11 +            wstring wstr = (wchar_t *)_bstr;
    1.12              _bstr.Detach();
    1.13  
    1.14              return utf8_string(wstr, norm);
    1.15 @@ -90,7 +90,7 @@
    1.16              if (len == 0)
    1.17                  return NULL;
    1.18  
    1.19 -            CComSafeArray<BSTR> sa_string_list((LONG) len);
    1.20 +            CComSafeArray<BSTR> sa_string_list((LONG)len);
    1.21              LONG n = 0;
    1.22              for (const ::stringlist_t *k = stringlist; k && k->value; k = k->next) {
    1.23                  if (k->value) {
    1.24 @@ -112,7 +112,7 @@
    1.25  
    1.26              CComSafeArray<BSTR> sa(safearray);
    1.27              int n_strings = 0;
    1.28 -            ::stringlist_t *_stringlist = ::new_stringlist((const char *) NULL);
    1.29 +            ::stringlist_t *_stringlist = ::new_stringlist((const char *)NULL);
    1.30              assert(_stringlist);
    1.31              if (_stringlist == NULL)
    1.32                  throw std::bad_alloc();