summaryrefslogtreecommitdiffstats
path: root/src/kernel/qcolor_x11.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-13 17:43:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-13 17:43:39 -0600
commit359640943bcf155faa9a067dde9e00a123276290 (patch)
treefb3d55ea5e18949042fb0064123fb73d2b1eb932 /src/kernel/qcolor_x11.cpp
parenta829bcdc533e154000803d517200d32fe762e85c (diff)
downloadtqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz
tqt3-359640943bcf155faa9a067dde9e00a123276290.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qcolor_x11.cpp')
-rw-r--r--src/kernel/qcolor_x11.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/qcolor_x11.cpp b/src/kernel/qcolor_x11.cpp
index 38080b42..4328babc 100644
--- a/src/kernel/qcolor_x11.cpp
+++ b/src/kernel/qcolor_x11.cpp
@@ -242,12 +242,12 @@ void TQColor::initialize()
// we allocated.
screendata[scr]->g_cells = TQMIN(ncols,256);
screendata[scr]->g_carr = new XColor[screendata[scr]->g_cells];
- Q_CHECK_PTR( screendata[scr]->g_carr );
+ TQ_CHECK_PTR( screendata[scr]->g_carr );
memset( screendata[scr]->g_carr, 0,
screendata[scr]->g_cells*sizeof(XColor) );
screendata[scr]->g_carr_fetch = TRUE; // run XQueryColors on demand
screendata[scr]->g_our_alloc = new bool[screendata[scr]->g_cells];
- Q_CHECK_PTR( screendata[scr]->g_our_alloc );
+ TQ_CHECK_PTR( screendata[scr]->g_our_alloc );
memset( screendata[scr]->g_our_alloc, FALSE,
screendata[scr]->g_cells*sizeof(bool) );
XColor *xc = &screendata[scr]->g_carr[0];
@@ -273,7 +273,7 @@ void TQColor::initialize()
dictsize = col_std_dict;
}
screendata[scr]->colorDict = new TQColorDict(dictsize); // create dictionary
- Q_CHECK_PTR( screendata[scr]->colorDict );
+ TQ_CHECK_PTR( screendata[scr]->colorDict );
if ( spec == (int)TQApplication::ManyColor ) {
screendata[scr]->color_reduce = TRUE;
@@ -572,7 +572,7 @@ uint TQColor::alloc( int screen )
}
if ( !many || current_alloc_context != 0 ) {
c = new TQColorData; // insert into color dict
- Q_CHECK_PTR( c );
+ TQ_CHECK_PTR( c );
c->pix = pix;
c->context = current_alloc_context;
sd->colorDict->insert( (long)d.argb, c ); // store color in dict