Code cleanups

on behalf of Lebedev, see issue 1332
This commit is contained in:
Oliver Duis
2012-04-22 10:44:51 +02:00
parent 0dec768a2b
commit 29dc72e26c
105 changed files with 539 additions and 690 deletions

View File

@@ -29,7 +29,7 @@ PreviewHandler::PreviewHandler () : image(NULL) {
pih->phandler = this;
pih->destroyed = false;
pih->pending = 0;
};
}
PreviewHandler::~PreviewHandler () {
@@ -37,7 +37,7 @@ PreviewHandler::~PreviewHandler () {
pih->destroyed = true;
else
delete pih;
};
}
//----------------previewimagelistener functions--------------------
@@ -49,7 +49,7 @@ struct iaimgpar {
};
int setImageUI (void* data) {
iaimgpar* iap = (iaimgpar*)data;
iaimgpar* iap = static_cast<iaimgpar*>(data);
PreviewHandlerIdleHelper* pih = iap->pih;
if (pih->destroyed) {
@@ -95,7 +95,7 @@ void PreviewHandler::setImage (rtengine::IImage8* i, double scale, rtengine::pro
int delImageUI (void* data) {
iaimgpar* iap = (iaimgpar*)data;
iaimgpar* iap = static_cast<iaimgpar*>(data);
PreviewHandlerIdleHelper* pih = iap->pih;
if (pih->destroyed) {
@@ -138,7 +138,7 @@ void PreviewHandler::delImage (IImage8* i) {
int imageReadyUI (void* data) {
iaimgpar* iap = (iaimgpar*)data;
iaimgpar* iap = static_cast<iaimgpar*>(data);
PreviewHandlerIdleHelper* pih = iap->pih;
if (pih->destroyed) {