Commit 587907db authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Constify.

svn path=/trunk/KDE/kdeutils/ark/; revision=979512
parent 3337324f
......@@ -606,7 +606,7 @@ int LibArchiveInterface::extractionFlags() const
return result;
}
void LibArchiveInterface::copyData( QString filename, struct archive *dest, bool partialprogress )
void LibArchiveInterface::copyData( const QString& filename, struct archive *dest, bool partialprogress )
{
char buff[ARCHIVE_DEFAULT_BYTES_PER_BLOCK];
ssize_t readBytes;
......
......@@ -49,8 +49,8 @@ class LibArchiveInterface: public ReadWriteArchiveInterface
private:
void emitEntryFromArchiveEntry( struct archive_entry *entry );
int extractionFlags() const;
void copyData( const QString& filename, struct archive *dest, bool partialprogress = true );
void copyData( struct archive *source, struct archive *dest, bool partialprogress = true );
void copyData( QString filename, struct archive *dest, bool partialprogress = true );
bool writeFile( const QString& fileName, struct archive* arch, struct archive_entry* entry );
int m_cachedArchiveEntryCount;
......
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