all repos — fluxbox @ 54fcccc44e7e3ca62c2bc90b7778eb4d172c79e7

custom fork of the fluxbox windowmanager

fix slitlist issue, thanks mathias gumz
rathnor rathnor
commit

54fcccc44e7e3ca62c2bc90b7778eb4d172c79e7

parent

fb8ec8979b771fa5dc4d7e944f3fd3656a64390b

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M src/Slit.ccsrc/Slit.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Slit.cc,v 1.88 2004/01/30 11:06:25 rathnor Exp $ +// $Id: Slit.cc,v 1.89 2004/02/06 12:09:14 rathnor Exp $ #include "Slit.hh"

@@ -1131,20 +1131,20 @@ // save filename so we can save client list later

m_filename = FbTk::StringUtil::expandFilename(filename); struct stat buf; - if (stat(filename, &buf) != 0) { - std::ifstream file(filename); + if (stat(m_filename.c_str(), &buf) != 0) { + std::ifstream file(m_filename.c_str()); std::string name; while (! file.eof()) { name = ""; std::getline(file, name); // get the entire line - if (name.size() <= 0) + if (name.empty()) continue; // remove whitespaces from start and end FbTk::StringUtil::removeFirstWhitespace(name); // the cleaned string could still be a comment, or blank - if ( name.size() <= 0 || name[0] == '#' || name[0] == '!' ) + if ( name.empty() || name[0] == '#' || name[0] == '!' ) continue; // trailing whitespace won't affect the above test