summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-03-30 03:12:23 (UTC)
committer mickeyl <mickeyl>2003-03-30 03:12:23 (UTC)
commit161d9299ad2448092d62a1cff16e64c1b5b3a436 (patch) (side-by-side diff)
tree057fc5da398fc6927c9fd6a6ebafa8256fb87d02
parent8e1504c3e8b8e5af509147f0b33f4e92a7c1c041 (diff)
downloadopie-161d9299ad2448092d62a1cff16e64c1b5b3a436.zip
opie-161d9299ad2448092d62a1cff16e64c1b5b3a436.tar.gz
opie-161d9299ad2448092d62a1cff16e64c1b5b3a436.tar.bz2
remove unnecessary usage of and thus the dependency on libstdc++
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/oimageeffect.cpp52
1 files changed, 13 insertions, 39 deletions
diff --git a/libopie2/opieui/oimageeffect.cpp b/libopie2/opieui/oimageeffect.cpp
index 3c28bbe..2855da6 100644
--- a/libopie2/opieui/oimageeffect.cpp
+++ b/libopie2/opieui/oimageeffect.cpp
@@ -66,5 +66,3 @@ QImage OImageEffect::gradient(const QSize &size, const QColor &ca,
if (size.width() == 0 || size.height() == 0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::gradient: invalid image" << endl;
-#endif
+ qDebug( "WARNING: OImageEffect::gradient: invalid image" );
return image;
@@ -354,5 +352,3 @@ QImage OImageEffect::unbalancedGradient(const QSize &size, const QColor &ca,
if (size.width() == 0 || size.height() == 0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::unbalancedGradient : invalid image\n";
-#endif
+ qDebug( "WARNING: OImageEffect::unbalancedGradient : invalid image" );
return image;
@@ -575,5 +571,3 @@ QImage& OImageEffect::intensity(QImage &image, float percent)
if (image.width() == 0 || image.height() == 0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::intensity : invalid image\n";
-#endif
+ qDebug( "WARNING: OImageEffect::intensity : invalid image" );
return image;
@@ -642,5 +636,3 @@ QImage& OImageEffect::channelIntensity(QImage &image, float percent,
if (image.width() == 0 || image.height() == 0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::channelIntensity : invalid image\n";
-#endif
+ qDebug( "WARNING: OImageEffect::channelIntensity : invalid image" );
return image;
@@ -734,5 +726,3 @@ QImage& OImageEffect::modulate(QImage &image, QImage &modImage, bool reverse,
modImage.width() == 0 || modImage.height() == 0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::modulate : invalid image\n";
-#endif
+ qDebug( "WARNING: OImageEffect::modulate : invalid image" );
return image;
@@ -865,5 +855,3 @@ QImage& OImageEffect::blend(const QColor& clr, QImage& dst, float opacity)
if (opacity < 0.0 || opacity > 1.0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::blend : invalid opacity. Range [0, 1]\n";
-#endif
+ qDebug( "WARNING: OImageEffect::blend : invalid opacity. Range [0, 1] ");
return dst;
@@ -910,5 +898,3 @@ QImage& OImageEffect::blend(QImage& src, QImage& dst, float opacity)
if (src.width() != dst.width() || src.height() != dst.height()) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::blend : src and destination images are not the same size\n";
-#endif
+ qDebug( "WARNING: OImageEffect::blend : src and destination images are not the same size" );
return dst;
@@ -917,5 +903,3 @@ QImage& OImageEffect::blend(QImage& src, QImage& dst, float opacity)
if (opacity < 0.0 || opacity > 1.0) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::blend : invalid opacity. Range [0, 1]\n";
-#endif
+ qDebug( "WARNING: OImageEffect::blend : invalid opacity. Range [0, 1]" );
return dst;
@@ -959,5 +943,3 @@ QImage& OImageEffect::blend(QImage &image, float initial_intensity,
if (image.width() == 0 || image.height() == 0 || image.depth()!=32 ) {
-#ifndef NDEBUG
- cerr << "WARNING: OImageEffect::blend : invalid image\n";
-#endif
+ qDebug( "WARNING: OImageEffect::blend : invalid image" );
return image;
@@ -1154,5 +1136,3 @@ QImage& OImageEffect::blend(QImage &image, float initial_intensity,
}
-#ifndef NDEBUG
- else cerr << "OImageEffect::blend effect not implemented" << endl;
-#endif
+ else qDebug( "OImageEffect::blend effect not implemented" );
return image;
@@ -1186,5 +1166,3 @@ QImage& OImageEffect::blend(QImage &image1, QImage &image2,
blendImage.width() == 0 || blendImage.height() == 0) {
-#ifndef NDEBUG
- cerr << "OImageEffect::blend effect invalid image" << endl;
-#endif
+ qDebug( "OImageEffect::blend effect invalid image" );
return image1;
@@ -1286,5 +1264,3 @@ QImage& OImageEffect::hash(QImage &image, Lighting lite, unsigned int spacing)
if (image.width() == 0 || image.height() == 0) {
-#ifndef NDEBUG
- cerr << "OImageEffect::hash effect invalid image" << endl;
-#endif
+ qDebug( "OImageEffect::hash effect invalid image" );
return image;
@@ -1796,5 +1772,3 @@ bool OImageEffect::blend(
{
-#ifndef NDEBUG
- cerr << "OImageEffect::blend : Sizes not correct\n" ;
-#endif
+ qDebug( "OImageEffect::blend : Sizes not correct" );
return false;