Commit 433684c9 authored by Dirk Mueller's avatar Dirk Mueller
Browse files

deprecated--

svn path=/trunk/KDE/kdebase/runtime/; revision=631664
parent a3b74e4a
......@@ -174,10 +174,7 @@ void CgiProtocol::get( const KUrl& url )
stripHeader = false;
data( output );
} else {
QByteArray array;
array.setRawData( buffer, n );
data( array );
array.clear();
data( QByteArray::fromRawData( buffer, n ) );
}
}
......
......@@ -82,7 +82,8 @@ void FilterProtocol::get( const KUrl & )
int result;
QByteArray inputBuffer;
QByteArray outputBuffer(8*1024); // Start with a modest buffer
QByteArray outputBuffer;
outputBuffer.resize(8*1024); // Start with a modest buffer
filter->setOutBuffer( outputBuffer.data(), outputBuffer.size() );
while(true)
{
......
......@@ -989,7 +989,6 @@ void FloppyProtocol::get( const KUrl& url )
clearBuffers();
int result;
int bytesRead(0);
QByteArray array;
bool loopFinished(false);
bool errorOccured(false);
do
......@@ -1006,10 +1005,7 @@ void FloppyProtocol::get( const KUrl& url )
{
kDebug(7101)<<"Floppy::get(): m_stdoutSize:"<<m_stdoutSize<<endl;
bytesRead+=m_stdoutSize;
array.setRawData(m_stdoutBuffer, m_stdoutSize);
data( array );
array.resetRawData(m_stdoutBuffer, m_stdoutSize);
data( QByteArray::fromRawData(m_stdoutBuffer, m_stdoutSize) );
}
else
{
......@@ -1089,7 +1085,6 @@ void FloppyProtocol::put( const KUrl& url, int , bool overwrite, bool )
clearBuffers();
int result(0);
int bytesRead(0);
QByteArray array;
//from file.cc
// Loop until we got 0 (end of data)
......
......@@ -118,7 +118,6 @@ void InfoProtocol::get( const KUrl& url )
}
char buffer[ 4096 ];
QByteArray array;
bool empty = true;
while ( !feof( file ) )
......@@ -137,9 +136,7 @@ void InfoProtocol::get( const KUrl& url )
}
empty = false;
array.setRawData( buffer, n );
data( array );
array.clear();
data( QByteArray::fromRawData( buffer, n ) );
}
pclose( file );
......
......@@ -2292,7 +2292,8 @@ static char *scan_table(char *c)
j=j+currow->at(curfield).colspan;
out_html(">");
if (currow->at(curfield).size) out_html(change_to_size(currow->at(curfield).size));
if (currow->at(curfield).font) out_html(set_font(QByteArray( currow->at(curfield).font )));
if (currow->at(curfield).font)
out_html(set_font(QByteArray::number(currow->at(curfield).font) ));
switch (currow->at(curfield).align) {
case '=': out_html("<HR><HR>"); break;
case '_': out_html("<HR>"); break;
......@@ -3132,7 +3133,7 @@ static char *scan_request(char *c)
nlen++;
}
int j = nlen;
while (c[j] && c[j]==' ' || c[j]=='\t') j++;
while (c[j]==' ' || c[j]=='\t') j++;
/* search macro database of self-defined macros */
QMap<QByteArray,StringDefinition>::const_iterator it=s_stringDefinitionMap.find(macroName);
if (it!=s_stringDefinitionMap.end())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment