mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 05:15:33 +00:00
Fixed compilation under gcc 4.7.
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
@@ -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 + ")";
|
||||
|
||||
Reference in New Issue
Block a user