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

List:       kde-commits
Subject:    kdeutils/klaptopdaemon
From:       Frerich Raabe <raabe () kde ! org>
Date:       2005-01-20 12:21:29
Message-ID: 20050120122129.9B32D1CF94 () office ! kde ! org
[Download RAW message or body]

CVS commit by raabe: 

- Fix warnings


  M +7 -8      portable.cpp   1.92


--- kdeutils/klaptopdaemon/portable.cpp  #1.91:1.92
@@ -2011,5 +2011,6 @@ laptop_portable::get_button(LaptopButton
 //
 
-#include <iostream.h>
+#include <iostream>
+using namespace std;
 
 //
@@ -2109,6 +2110,4 @@ int laptop_portable::has_standby()
 int laptop_portable::has_hibernation()
 {
-        struct stat s;
-
         if (::access(PATH_TPCTL, X_OK)==0)
                 return(1);
@@ -2248,5 +2247,5 @@ laptop_portable::apm_set_mask(bool , boo
 //
 void
-laptop_portable::extra_config(QWidget *parent, KConfig *config, QVBoxLayout *layout)
+laptop_portable::extra_config(QWidget * /*parent*/, KConfig * /*config*/, \
QVBoxLayout * /*layout*/)  {
         // INSERT HERE
@@ -2317,5 +2316,5 @@ laptop_portable::has_brightness()
 
 void 
-laptop_portable::set_brightness(bool blank, int val)    // val = 0-255 255 \
brightest, 0 means dimmest (if !blank it must be still visible),  \
+laptop_portable::set_brightness(bool /*blank*/, int /*val*/)    // val = 0-255 255 \
brightest, 0 means dimmest (if !blank it must be still visible),   {
         // INSERT HERE
@@ -2398,5 +2397,5 @@ laptop_portable::get_battery_status(int 
 
 bool
-laptop_portable::has_software_suspend(int type)
+laptop_portable::has_software_suspend(int /*type*/)
 {
         return false; // (::has_software_suspend(type));
@@ -2404,5 +2403,5 @@ laptop_portable::has_software_suspend(in
 
 void
-laptop_portable::software_suspend_set_mask(bool hibernate)
+laptop_portable::software_suspend_set_mask(bool /*hibernate*/)
 {
         // software_suspend_is_preferred = hibernate;


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

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