Fixed compilation under gcc 4.7.

This commit is contained in:
Alexander Shaduri
2017-11-11 19:10:11 +00:00
parent 49fb65ce71
commit 7236841d64
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ This distribution includes:
The binary was compiled against Gtkmm (http://www.gtkmm.org/), GTK+
(http://gtk.org/) and related libraries, and PCRE (http://www.pcre.org/).
* Smartctl binaries (from smartmontools 6.5, http://smartmontools.sf.net/)
* Smartctl binaries (from smartmontools 6.6, http://smartmontools.sf.net/)
- smartctl-nc.exe (compiled without console output), smartctl.exe (compiled
with console output), update-smart-drivedb.exe (drive database updater).
+1 -1
View File
@@ -668,7 +668,7 @@ const std::map<char, std::string>& StorageDevice::get_drive_letters() const
std::string StorageDevice::format_drive_letters(bool with_volnames) const
{
std::vector<std::string> drive_letters_decorated;
for (std::map<char, std::string>::const_iterator iter = drive_letters_.cbegin(); iter != drive_letters_.cend(); ++iter) {
for (std::map<char, std::string>::const_iterator iter = drive_letters_.begin(); iter != drive_letters_.end(); ++iter) {
drive_letters_decorated.push_back(std::string() + (char)std::toupper(iter->first) + ":");
if (with_volnames && !iter->second.empty()) {
drive_letters_decorated.back() += std::string(" (") + iter->second + ")";