Made tooltip getDeviceIcon return const string
This commit is contained in:
parent
05effad18b
commit
c4282cfacc
|
@ -12,7 +12,7 @@ class UPowerTooltip : public Gtk::Window {
|
||||||
private:
|
private:
|
||||||
typedef std::unordered_map<std::string, UpDevice*> Devices;
|
typedef std::unordered_map<std::string, UpDevice*> Devices;
|
||||||
|
|
||||||
std::string getDeviceIcon(UpDeviceKind& kind);
|
const std::string getDeviceIcon(UpDeviceKind& kind);
|
||||||
|
|
||||||
Gtk::Box* contentBox;
|
Gtk::Box* contentBox;
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ uint UPowerTooltip::updateTooltip(Devices& devices) {
|
||||||
return deviceCount;
|
return deviceCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UPowerTooltip::getDeviceIcon(UpDeviceKind& kind) {
|
const std::string UPowerTooltip::getDeviceIcon(UpDeviceKind& kind) {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case UP_DEVICE_KIND_LINE_POWER:
|
case UP_DEVICE_KIND_LINE_POWER:
|
||||||
return "ac-adapter-symbolic";
|
return "ac-adapter-symbolic";
|
||||||
|
|
Loading…
Reference in New Issue