Skip to content

Commit

Permalink
Fix missed code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhadeepJasu committed Jul 15, 2021
1 parent 05d72fb commit fcf2448
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Core/VoiceAnalyser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Ensembles.Core {
voices.resize (voices.length + 1);
if (line != null) {
string[] parts = line.split (",");
int bank = int.parse (parts[0]);
int bank = int.parse (parts[0]);
int preset = int.parse (parts[1]);
if (bank == sf_preset_bank_num && preset == sf_preset_num) {
category = parts[2];
Expand Down
6 changes: 3 additions & 3 deletions src/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
*
* @see Ensembls.Shell.EnsemblesApp
* @return {@code int}
* @since 1.0.0
* @since 0.0.1
*/
public static int main (string[] args) {
X.init_threads ();
X.init_threads ();
var app = new Ensembles.Shell.EnsemblesApp ();
var ret = app.run (args);
return ret;
}
}
2 changes: 1 addition & 1 deletion src/Shell/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace Ensembles.Shell {
css_provider.load_from_resource ("/com/github/subhadeepjasu/ensembles/Application.css");
// CSS Provider
Gtk.StyleContext.add_provider_for_screen (
Gdk.Screen.get_default(),
Gdk.Screen.get_default (),
css_provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
);
Expand Down
8 changes: 4 additions & 4 deletions src/Shell/Display/MainDisplayCasing.vala
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ namespace Ensembles.Shell {
string[] name_arr = new string [names.length ()];
string[] genre_arr = new string [genre.length ()];
int[] tempo_arr = new int [tempo.length ()];
for(int i = 0; i < paths.length (); i++) {
for (int i = 0; i < paths.length (); i++) {
path_arr[i] = paths.nth_data (i);
}
for(int i = 0; i < names.length (); i++) {
for (int i = 0; i < names.length (); i++) {
name_arr[i] = names.nth_data (i);
}
for(int i = 0; i < genre.length (); i++) {
for (int i = 0; i < genre.length (); i++) {
genre_arr[i] = genre.nth_data (i);
}
for(int i = 0; i < tempo.length (); i++) {
for (int i = 0; i < tempo.length (); i++) {
tempo_arr[i] = tempo.nth_data (i);
}
style_menu.populate_style_menu (path_arr, name_arr, genre_arr, tempo_arr);
Expand Down

0 comments on commit fcf2448

Please sign in to comment.