From 986a23a683f53ab612be03b56dd9bc7c1aeb3651 Mon Sep 17 00:00:00 2001 From: harlekin Date: Fri, 28 Jun 2002 16:46:52 +0000 Subject: update --- (limited to 'noncore/net/opietooth') diff --git a/noncore/net/opietooth/manager/hciconfwrapper.cpp b/noncore/net/opietooth/manager/hciconfwrapper.cpp index db6a326..7b2497a 100644 --- a/noncore/net/opietooth/manager/hciconfwrapper.cpp +++ b/noncore/net/opietooth/manager/hciconfwrapper.cpp @@ -1,4 +1,4 @@ -#include "hciconfwrapper.h" + #include "hciconfwrapper.h" #include #include @@ -91,20 +91,19 @@ namespace OpieTooth { //qDebug(str); if( (str.contains(key)) > 0 ) { qDebug("Found"); - // still need look if its commented out!!! + // still need to look if its commented out!!! str.simplifyWhiteSpace(); qDebug( key ); if (str.startsWith("#")) { - outstream << (key + " " + value + ";\n"); + str = (key + " " + value + ";"); } else { - str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";\n"); + str = str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";"); } qDebug( str ); - outstream << str; - } else { - outstream << str + "\n"; } + + outstream << str << endl; } f.close(); -- cgit v0.9.0.2