xaizek / d2if (License: GPLv2+) (since 2018-12-07)
Simple dzen2 input formatter, which is supposed to not waste CPU time for nothing and provides a number of builtin "widgets" for displaying system information.
Commit cd1b3eaad50e62376819a6e6b51e0134350c3b07

Fix compilation with newer versions of GCC
Author: xaizek
Author date (UTC): 2021-11-23 14:39
Committer name: xaizek
Committer date (UTC): 2021-11-23 14:39
Parent(s): 87cec68833116cee0b3d73e2ac8b393f76e97da2
Signing key: 99DC5E4DB05F6BE2
Tree: bc62109054457b8ad04128512d3a6c8a6c72cf4c
File Lines added Lines deleted
src/Network.cpp 2 2
src/Network.hpp 1 0
File src/Network.cpp changed (mode: 100644) (index 8752899..39ac4bf)
... ... void Network::update()
46 46
47 47 const Network::ifaceList &ifaces { getIfacesInfo() }; const Network::ifaceList &ifaces { getIfacesInfo() };
48 48 int i = 0; int i = 0;
49 for (const std::pair<std::string, ifaceInfo> &iface : ifaces) {
49 for (const std::pair<const std::string, ifaceInfo> &iface : ifaces) {
50 50 const auto prevIt = last.find(iface.first); const auto prevIt = last.find(iface.first);
51 51 const ifaceInfo prev { const ifaceInfo prev {
52 52 (prevIt == last.cend() (prevIt == last.cend()
 
... ... void Network::update()
75 75
76 76 Field::setText(result.str()); Field::setText(result.str());
77 77
78 for (const std::pair<std::string, ifaceInfo> &iface : ifaces) {
78 for (const std::pair<const std::string, ifaceInfo> &iface : ifaces) {
79 79 auto it = last.find(iface.first); auto it = last.find(iface.first);
80 80 if (it != last.end()) { if (it != last.end()) {
81 81 last.erase(it); last.erase(it);
File src/Network.hpp changed (mode: 100644) (index 2d34b56..7024cf3)
18 18 #ifndef D2IF__NETWORK_HPP__ #ifndef D2IF__NETWORK_HPP__
19 19 #define D2IF__NETWORK_HPP__ #define D2IF__NETWORK_HPP__
20 20
21 #include <functional>
21 22 #include <map> #include <map>
22 23 #include <string> #include <string>
23 24 #include <tuple> #include <tuple>
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/d2if

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/d2if

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master