From: Vadim Zeitlin Date: Mon, 28 Apr 2003 11:51:53 +0000 (+0000) Subject: fix for Unicode compilation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b8985048a57c65d6415dd7c3d6193b3bfaaacdc0 fix for Unicode compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 2bd623bd8c..efc8f3e290 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -253,24 +253,25 @@ wxString wxFileData::GetHint() const { wxString s = m_filePath; s += wxT(" "); + if (IsDir()) - s += wxT(" "); + s += _(""); else if (IsLink()) - s += wxT(" "); + s += _(""); else if (IsDrive()) + s += _(""); + else // plain file + s += wxString::Format( _("%ld bytes"), m_size ); + + s += wxT(' '); + + if ( !IsDrive() ) { - s += wxT(" "); - return s; - } - else - { - s += wxString::Format( "%ld", m_size ); - s += wxT(" bytes "); + s << GetModificationTime() + << wxT(" ") + << m_permissions; } - s += GetModificationTime(); - s += wxT(" "); - s += m_permissions; return s; };