diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-02-12 16:00:34 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-02-13 09:05:50 +0100 |
| commit | 404624bf0b0125e5a408021c616ee9b9e2dde382 (patch) | |
| tree | d2c3cd6256b09ebdc04b8c913b21c2e56d30c2e1 /Source/Core/DiscIO/VolumeDirectory.cpp | |
| parent | 2ff794d299b0426d1f2a523523260efad84a9837 (diff) | |
Turn loops into range-based form
and some things suggested by cppcheck and compiler warnings.
Diffstat (limited to 'Source/Core/DiscIO/VolumeDirectory.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeDirectory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeDirectory.cpp b/Source/Core/DiscIO/VolumeDirectory.cpp index f9f8f00ea8..a501a9c0fa 100644 --- a/Source/Core/DiscIO/VolumeDirectory.cpp +++ b/Source/Core/DiscIO/VolumeDirectory.cpp @@ -106,7 +106,7 @@ bool CVolumeDirectory::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const WriteToBuffer(FST_ADDRESS, m_fstSize, m_FSTData, _Offset, _Length, _pBuffer); } - if(m_virtualDisk.size() == 0) + if(m_virtualDisk.empty()) return true; // Determine which file the offset refers to |
