From 2a29b247f7008162a91257466d916df3002c6c3f Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 7 Sep 2007 13:13:50 +0000 Subject: [PATCH] save really few bytes svn path=/trunk/KDE/kdegraphics/okular/; revision=709414 --- core/action.cpp | 6 +++--- core/annotations.cpp | 12 ++++++------ core/document.cpp | 6 +++--- core/generator_p.h | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/action.cpp b/core/action.cpp index 7bdfd5f4c..03a7cea0d 100644 --- a/core/action.cpp +++ b/core/action.cpp @@ -267,9 +267,9 @@ class Okular::SoundActionPrivate : public Okular::ActionPrivate } double m_volume; - bool m_sync; - bool m_repeat; - bool m_mix; + bool m_sync : 1; + bool m_repeat : 1; + bool m_mix : 1; Okular::Sound *m_sound; }; diff --git a/core/annotations.cpp b/core/annotations.cpp index e036fb5d1..e5574689a 100644 --- a/core/annotations.cpp +++ b/core/annotations.cpp @@ -1107,8 +1107,8 @@ class Okular::LineAnnotationPrivate : public Okular::AnnotationPrivate LineAnnotationPrivate() : AnnotationPrivate(), m_lineStartStyle( LineAnnotation::None ), m_lineEndStyle( LineAnnotation::None ), - m_lineClosed( false ), m_lineLeadingFwdPt( 0 ), m_lineLeadingBackPt( 0 ), - m_lineShowCaption( false ), m_lineIntent( LineAnnotation::Unknown ) + m_lineClosed( false ), m_lineShowCaption( false ), m_lineLeadingFwdPt( 0 ), + m_lineLeadingBackPt( 0 ), m_lineIntent( LineAnnotation::Unknown ) { } @@ -1120,11 +1120,11 @@ class Okular::LineAnnotationPrivate : public Okular::AnnotationPrivate QLinkedList m_transformedLinePoints; LineAnnotation::TermStyle m_lineStartStyle; LineAnnotation::TermStyle m_lineEndStyle; - bool m_lineClosed; + bool m_lineClosed : 1; + bool m_lineShowCaption : 1; QColor m_lineInnerColor; double m_lineLeadingFwdPt; double m_lineLeadingBackPt; - bool m_lineShowCaption; LineAnnotation::LineIntent m_lineIntent; }; @@ -1506,8 +1506,8 @@ class HighlightAnnotation::Quad::Private NormalizedPoint m_points[4]; NormalizedPoint m_transformedPoints[4]; - bool m_capStart; - bool m_capEnd; + bool m_capStart : 1; + bool m_capEnd : 1; double m_feather; }; diff --git a/core/document.cpp b/core/document.cpp index 4e24abc3a..a7fbe0693 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -89,8 +89,8 @@ struct RunningSearch QString cachedString; Document::SearchType cachedType; Qt::CaseSensitivity cachedCaseSensitivity; - bool cachedViewportMove; - bool cachedNoDialogs; + bool cachedViewportMove : 1; + bool cachedNoDialogs : 1; QColor cachedColor; }; @@ -103,7 +103,7 @@ struct GeneratorInfo Generator * generator; KLibrary * library; QString catalogName; - bool hasConfig; + bool hasConfig : 1; }; #define foreachObserver( cmd ) {\ diff --git a/core/generator_p.h b/core/generator_p.h index 1a08819d5..ecf7fbdf7 100644 --- a/core/generator_p.h +++ b/core/generator_p.h @@ -50,8 +50,8 @@ class GeneratorPrivate Generator *m_generator; PixmapGenerationThread *mPixmapGenerationThread; TextPageGenerationThread *mTextPageGenerationThread; - bool mPixmapReady; - bool mTextPageReady; + bool mPixmapReady : 1; + bool mTextPageReady : 1; };