if ( !buf )
return false;
+#if wxUSE_UNICODE
const size_t size = buf.length();
+#else
+ const size_t size = s.length();
+#endif
+
return Write(buf, size) == size;
}
wxFileOffset iRc = Tell();
if ( iRc != wxInvalidOffset ) {
- // have to use const_cast :-(
- wxFileOffset iLen = ((wxFile *)this)->SeekEnd();
+ wxFileOffset iLen = const_cast<wxFile *>(this)->SeekEnd();
if ( iLen != wxInvalidOffset ) {
// restore old position
if ( ((wxFile *)this)->Seek(iRc) == wxInvalidOffset ) {