]> git.tokkee.org Git - inkscape.git/commitdiff

Code

warning cleanup
authorjoncruz <joncruz@users.sourceforge.net>
Sun, 2 Mar 2008 05:45:09 +0000 (05:45 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Sun, 2 Mar 2008 05:45:09 +0000 (05:45 +0000)
src/extension/execution-env.cpp
src/trace/potrace/inkscape-potrace.cpp

index fae764a9d156f62ab412e2f3259955ba8f0a7271..aa8c82171a99f2db61c6572c955a6bf9cda4f17d 100644 (file)
@@ -70,7 +70,7 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Imp
 }
 
 /** \brief  Destroy an execution environment
-    
+
     Destroys the dialog if created and the document cache.
 */
 ExecutionEnv::~ExecutionEnv (void) {
@@ -138,7 +138,7 @@ ExecutionEnv::createWorkingDialog (void) {
 }
 
 void
-ExecutionEnv::workingCanceled( const int resp) {
+ExecutionEnv::workingCanceled( const int /*resp*/) {
     cancel();
     undo();
     return;
index 3f4cbc36c2803921e79aa0a61ff643205d6a515c..bad4278e2875a14f0ec99942783de244ebe25198 100644 (file)
@@ -43,7 +43,7 @@ static void updateGui()
 }
 
 
-static void potraceStatusCallback(double progress, void *userData) /* callback fn */
+static void potraceStatusCallback(double /*progress*/, void *userData) /* callback fn */
 {
     updateGui();
 
@@ -284,14 +284,14 @@ filterIndexed(PotraceTracingEngine &engine, GdkPixbuf * pixbuf)
     RgbMap *gm = gdkPixbufToRgbMap(pixbuf);
     if (engine.getMultiScanSmooth())
         {
-       RgbMap *gaussMap = rgbMapGaussian(gm);
-       newGm = rgbMapQuantize(gaussMap, engine.getMultiScanNrColors());
-       gaussMap->destroy(gaussMap);
-       }
+        RgbMap *gaussMap = rgbMapGaussian(gm);
+        newGm = rgbMapQuantize(gaussMap, engine.getMultiScanNrColors());
+        gaussMap->destroy(gaussMap);
+        }
     else
         {
-       newGm = rgbMapQuantize(gm, engine.getMultiScanNrColors());
-       }
+        newGm = rgbMapQuantize(gm, engine.getMultiScanNrColors());
+        }
     gm->destroy(gm);
 
     if (engine.getTraceType() == TRACE_QUANT_MONO)
@@ -379,7 +379,7 @@ PotraceTracingEngine::grayMapToPath(GrayMap *grayMap, long *nodeCount)
 
     /* trace a bitmap*/
     potrace_state_t *potraceState = potrace_trace(potraceParams,
-                                                 potraceBitmap);
+                                                  potraceBitmap);
 
     //## Free the Potrace bitmap
     bm_free(potraceBitmap);