diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:41:22 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:41:22 -0500 |
commit | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (patch) | |
tree | 54ceea8953098258666fe2459632470f5dc85c94 /src/processexec.h | |
parent | 191c434271e705161fbd01ed83b6d043a275bffc (diff) | |
download | ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.tar.gz ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.zip |
Apply build fixes
Diffstat (limited to 'src/processexec.h')
-rw-r--r-- | src/processexec.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/processexec.h b/src/processexec.h index 81c694e..e259ca5 100644 --- a/src/processexec.h +++ b/src/processexec.h @@ -33,11 +33,11 @@ public: bool run(); bool runAndWait(); - bool outputErrors() { return fErrors; }; + bool outputErrors() { return fErrors; }; - inline char *getStdoutData() { return buffer; }; - inline int getStdoutDataLen() { return bufLen; } - inline void clearData() { bufLen= 0; buffer[0]= 0; fErrors= false; }; + inline QString getStdoutData() { return buffer; }; + inline unsigned int getStdoutDataLen() { return buffer.length(); } + inline void clearData() { buffer.truncate(0); fErrors= false; }; protected slots: @@ -47,8 +47,7 @@ protected slots: private: static const int bufMax= 1023; - char buffer[bufMax+1]; - int bufLen; + QString buffer; bool fErrors; }; |