make swap() private

svn path=/trunk/KDE/kdegraphics/okular/; revision=744918
This commit is contained in:
Pino Toscano 2007-12-04 21:36:32 +00:00
parent 984d38ab9e
commit 66376cf31f
4 changed files with 5 additions and 8 deletions

View File

@ -608,7 +608,7 @@ void DocumentPrivate::sendGeneratorRequest()
m_pixmapRequestsStack.removeAll ( request );
if ( (int)m_rotation % 2 )
request->swap();
request->d->swap();
// we always have to unlock _before_ the generatePixmap() because
// a sync generation would end with requestDone() -> deadlock, and

View File

@ -407,9 +407,9 @@ Page* PixmapRequest::page() const
return d->mPage;
}
void PixmapRequest::swap()
void PixmapRequestPrivate::swap()
{
qSwap( d->mWidth, d->mHeight );
qSwap( mWidth, mHeight );
}
class Okular::ExportFormatPrivate : public QSharedData

View File

@ -515,11 +515,6 @@ class OKULAR_EXPORT PixmapRequest
*/
Page *page() const;
/**
* Internal usage.
*/
void swap();
private:
Q_DISABLE_COPY( PixmapRequest )

View File

@ -64,6 +64,8 @@ class GeneratorPrivate
class PixmapRequestPrivate
{
public:
void swap();
int mId;
int mPageNumber;
int mWidth;