Commit 1e320126 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Fix warnings about using struct for classes

parent a6ec5ea9
......@@ -151,7 +151,7 @@ glyph* TeXFont_PFB::getGlyph(quint16 ch, bool generateCharacterPixmap, const QCo
}
// This is the address of the glyph that will be returned.
struct glyph *g = glyphtable+ch;
glyph *g = glyphtable+ch;
if (fatalErrorInFontLoading == true)
......
......@@ -28,6 +28,5 @@ public:
private:
QFileInfo m_fileInfo;
quint32 m_line;
bool m_exists;
};
#endif
......@@ -19,7 +19,7 @@ static const char FAXMAGIC[] = "\000PC Research, Inc\000\000\000\000\000\000";
#define FAX_DPI_FINE QPoint(203,196)
/* rearrange input bits into t16bits lsb-first chunks */
static void normalize( struct pagenode *pn, int revbits, int swapbytes, size_t length )
static void normalize( pagenode *pn, int revbits, int swapbytes, size_t length )
{
t32bits *p = (t32bits *) pn->data;
......@@ -205,7 +205,7 @@ static void draw_line( pixnum *run, int lineNum, pagenode *pn )
}
}
static bool get_image( struct pagenode *pn )
static bool get_image( pagenode *pn )
{
unsigned char *data = getstrip( pn, 0 );
if ( !data )
......@@ -229,7 +229,7 @@ class FaxDocument::Private
}
FaxDocument *mParent;
struct pagenode mPageNode;
pagenode mPageNode;
FaxDocument::DocumentType mType;
};
......
......@@ -343,7 +343,7 @@ unexpected(const char *what, int LineNum)
/* Expand tiff modified huffman data (g3-1d without EOLs) */
void
MHexpand(struct pagenode *pn, drawfunc df)
MHexpand(pagenode *pn, drawfunc df)
{
int a0; /* reference element */
int lastx; /* copy line width to register */
......@@ -396,7 +396,7 @@ MHexpand(struct pagenode *pn, drawfunc df)
/* Expand group-3 1-dimensional data */
void
g31expand(struct pagenode *pn, drawfunc df)
g31expand(pagenode *pn, drawfunc df)
{
int a0; /* reference element */
int lastx; /* copy line width to register */
......@@ -480,7 +480,7 @@ g31expand(struct pagenode *pn, drawfunc df)
/* Expand group-3 2-dimensional data */
void
g32expand(struct pagenode *pn, drawfunc df)
g32expand(pagenode *pn, drawfunc df)
{
int RunLength; /* Length of current run */
int a0; /* reference element */
......@@ -600,7 +600,7 @@ g32expand(struct pagenode *pn, drawfunc df)
/* Expand group-4 data */
void
g4expand(struct pagenode *pn, drawfunc df)
g4expand(pagenode *pn, drawfunc df)
{
int RunLength; /* Length of current run */
int a0; /* reference element */
......@@ -717,7 +717,7 @@ static const unsigned char zerotab[256] = {
/* count fax lines */
int
G3count(struct pagenode *pn, int twoD)
G3count(pagenode *pn, int twoD)
{
t16bits *p = pn->data;
t16bits *end = p + pn->length/sizeof(*p);
......
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