diff options
Diffstat (limited to 'WebCore/platform/android/FileChooserAndroid.cpp')
-rw-r--r-- | WebCore/platform/android/FileChooserAndroid.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/WebCore/platform/android/FileChooserAndroid.cpp b/WebCore/platform/android/FileChooserAndroid.cpp index a8c4150..ec1b758 100644 --- a/WebCore/platform/android/FileChooserAndroid.cpp +++ b/WebCore/platform/android/FileChooserAndroid.cpp @@ -32,9 +32,8 @@ namespace WebCore { String FileChooser::basenameForWidth(const Font& font, int width) const { - if (m_filenames.size() == 0) { + if (!m_filenames.size()) return String(); - } // FIXME: This could be a lot faster, but assuming the data will not // often be much longer than the provided width, this may be fast enough. String output = m_filenames[0].copy(); |