[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r951 - trunk/daemon/trunk/src
From:       codesite-noreply () google ! com
Date:       2008-01-28 23:05:12
Message-ID: 001636e0a64a0444d057253c989ea6 () google ! com
[Download RAW message or body]

Author: niallw
Date: Mon Jan 28 15:04:14 2008
New Revision: 951

Modified:
   trunk/daemon/trunk/src/KlikdConfig.cpp

Log:
klikd: alter line_id handling

Modified: trunk/daemon/trunk/src/KlikdConfig.cpp
==============================================================================
--- trunk/daemon/trunk/src/KlikdConfig.cpp	(original)
+++ trunk/daemon/trunk/src/KlikdConfig.cpp	Mon Jan 28 15:04:14 2008
@@ -23,15 +23,14 @@

   while ( getline( &line, &n, output ) != -1 ) {

-    if ( strlen(line) <= 1 )
-      ++line_id;
-
-    else {
+    if ( strlen(line) > 1 ) {

       switch( line_id ) {
       case 1:
 	this->debug_mode = (bool) atoi( line );
+	// It's not _always_ on is it?
 	debug("Debug is ON");
+	++line_id;
 	break;
       case 2:
 	line[strlen(line)-1] = '\0';
@@ -39,9 +38,6 @@
 	  this->application_folders.push_back( line );
 	else
 	  debug(string("Dropping path ") + line);
-	break;
-      default:
-	cerr << "!! Extra configuration line: " << line << endl;
 	break;

       }
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic