summaryrefslogtreecommitdiff
path: root/library/inlinepics_p.h
authorsandman <sandman>2002-09-10 19:31:01 (UTC)
committer sandman <sandman>2002-09-10 19:31:01 (UTC)
commitb32eceaca5f1dbbfd7cd0709a34ce6f97929e28f (patch) (side-by-side diff)
tree22a605d7a7d6e697140e0334e8160881d41fe6fc /library/inlinepics_p.h
parent62bed9ee719bba0432596ad21f326a9e91b8a547 (diff)
downloadopie-b32eceaca5f1dbbfd7cd0709a34ce6f97929e28f.zip
opie-b32eceaca5f1dbbfd7cd0709a34ce6f97929e28f.tar.gz
opie-b32eceaca5f1dbbfd7cd0709a34ce6f97929e28f.tar.bz2
Workaround for gcc bug: gcc is irgnoring the inline keyword and the
qembed_findImage function is exported to libqpe
Diffstat (limited to 'library/inlinepics_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/inlinepics_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/inlinepics_p.h b/library/inlinepics_p.h
index 52d184b..892c321 100644
--- a/library/inlinepics_p.h
+++ b/library/inlinepics_p.h
@@ -5567,25 +5567,25 @@ static struct EmbedImage {
{ 96, 16, 8, (const unsigned char*)wordgame_shapes_data, 9, wordgame_shapes_ctable, TRUE, "wordgame_shapes" },
{ 9, 8, 8, (const unsigned char*)xtopowerofy_data, 2, xtopowerofy_ctable, TRUE, "xtopowerofy" },
{ 13, 11, 8, (const unsigned char*)ythrootofx_data, 2, ythrootofx_ctable, TRUE, "ythrootofx" },
{ 20, 20, 8, (const unsigned char*)zoom_data, 7, zoom_ctable, TRUE, "zoom" },
};
static int cmpEmbedImage(const void *a, const void *b)
{
const EmbedImage* ea = (const EmbedImage*)a;
const EmbedImage* eb = (const EmbedImage*)b;
return strcmp(ea->name,eb->name);
}
-inline const QImage& qembed_findImage(const char* name)
+inline static const QImage& qembed_findImage(const char* name)
{
EmbedImage key; key.name = name;
EmbedImage* r = (EmbedImage*)bsearch( &key, embed_image_vec,
sizeof(embed_image_vec)/sizeof(EmbedImage), sizeof(EmbedImage), cmpEmbedImage );
QImage* img;
if ( r ) {
img = new QImage((uchar*)r->data,
r->width,
r->height,
r->depth,
#ifdef _WS_QWS_
(r->width*r->depth+31)/32*4,