diff data/fft/FFTDataServer.cpp @ 1007:ba404199345f tonioni

Merge from default branch
author Chris Cannam
date Mon, 10 Nov 2014 09:19:49 +0000
parents e8e6c4e7437b
children cc27f35aa75c
line wrap: on
line diff
--- a/data/fft/FFTDataServer.cpp	Tue Sep 09 16:36:21 2014 +0100
+++ b/data/fft/FFTDataServer.cpp	Mon Nov 10 09:19:49 2014 +0000
@@ -1428,18 +1428,14 @@
                                     int fftSize,
                                     bool polar)
 {
-    char buffer[200];
-
-    sprintf(buffer, "%u-%u-%u-%u-%u-%u%s",
-            (unsigned int)XmlExportable::getObjectExportId(model),
-            (unsigned int)(channel + 1),
-            (unsigned int)windowType,
-            (unsigned int)windowSize,
-            (unsigned int)windowIncrement,
-            (unsigned int)fftSize,
-            polar ? "-p" : "-r");
-
-    return buffer;
+    return QString("%1-%2-%3-%4-%5-%6%7")
+        .arg(XmlExportable::getObjectExportId(model))
+        .arg(channel + 1)
+        .arg((int)windowType)
+        .arg(windowSize)
+        .arg(windowIncrement)
+        .arg(fftSize)
+        .arg(polar ? "-p" : "-r");
 }
 
 void