summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_freesound_mootcher.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-10-04 14:51:05 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-10-04 14:51:05 -0400
commit4dc63966f0872efe768dad61eb9b8785d06b92d1 (patch)
treee54104d57d6c2da7840979181368151fd0819c96 /gtk2_ardour/sfdb_freesound_mootcher.cc
parent297e80e020da94a56984b20782584bb1dd96ea34 (diff)
globally remove all trailing whitespace from ardour code base.
Paul Davis was responsible for introducing almost all of this.
Diffstat (limited to 'gtk2_ardour/sfdb_freesound_mootcher.cc')
-rw-r--r--gtk2_ardour/sfdb_freesound_mootcher.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk2_ardour/sfdb_freesound_mootcher.cc b/gtk2_ardour/sfdb_freesound_mootcher.cc
index bc367c3ddd..ebd165186d 100644
--- a/gtk2_ardour/sfdb_freesound_mootcher.cc
+++ b/gtk2_ardour/sfdb_freesound_mootcher.cc
@@ -323,7 +323,7 @@ CURLcode res;
if (res != CURLE_ABORTED_BY_CALLBACK) {
error << string_compose (_("curl error %1 (%2)"), res, curl_easy_strerror(res)) << endmsg;
}
- remove ( (audioFileName+".part").c_str() );
+ remove ( (audioFileName+".part").c_str() );
} else {
rename ( (audioFileName+".part").c_str(), audioFileName.c_str() );
// now download the tags &c.
@@ -332,20 +332,20 @@ CURLcode res;
return (void *) res;
}
-
+
void
Mootcher::doneWithMootcher()
{
- // update the sound info pane if the selection in the list box is still us
+ // update the sound info pane if the selection in the list box is still us
sfb->refresh_display(ID, audioFileName);
delete this; // this should be OK to do as long as Progress and Finished signals are always received in the order in which they are emitted
}
static void *
-freesound_download_thread_func(void *arg)
-{
+freesound_download_thread_func(void *arg)
+{
Mootcher *thisMootcher = (Mootcher *) arg;
void *res;
@@ -367,16 +367,16 @@ bool Mootcher::checkAudioFile(std::string originalFileName, std::string theID)
// check to see if audio file already exists
FILE *testFile = g_fopen(audioFileName.c_str(), "r");
- if (testFile) {
+ if (testFile) {
fseek (testFile , 0 , SEEK_END);
if (ftell (testFile) > 256) {
fclose (testFile);
return true;
}
- // else file was small, probably an error, delete it
+ // else file was small, probably an error, delete it
fclose(testFile);
- remove( audioFileName.c_str() );
+ remove( audioFileName.c_str() );
}
return false;
}
@@ -430,8 +430,8 @@ bool Mootcher::fetchAudioFile(std::string originalFileName, std::string theID, s
//---------
-void
-Mootcher::updateProgress(double dlnow, double dltotal)
+void
+Mootcher::updateProgress(double dlnow, double dltotal)
{
if (dltotal > 0) {
double fraction = dlnow / dltotal;
@@ -445,7 +445,7 @@ Mootcher::updateProgress(double dlnow, double dltotal)
}
}
-int
+int
Mootcher::progress_callback(void *caller, double dltotal, double dlnow, double /*ultotal*/, double /*ulnow*/)
{
// It may seem curious to pass a pointer to an instance of an object to a static