This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
! // Remove any directory path from the filename ! int sepIndex = fileName.lastIndexOf (FS); ! if (sepIndex < 0) ! { ! currentFile = fileName; ! nativeSetFile (fileName); ! } ! else ! { ! if (fileName.length() > (sepIndex + 1)) ! { ! String fn = fileName.substring (sepIndex + 1); ! currentFile = fn; ! nativeSetFile (fn); ! } ! else ! { ! currentFile = ""; ! nativeSetFile (""); ! } ! }
Can the nativeSetFile calls here be replaced by one call after the if block?
+ static void window_closed (GtkDialog *dialog __attribute__((unused)), + gint responseId, + jobject peer_obj); + static void ok_clicked (GtkButton *button __attribute__((unused)), + jobject peer_obj); + static void cancel_clicked (GtkButton *button __attribute__((unused)), + jobject peer_obj);
The attributes aren't needed in the function declarations, only in the definitions.
-- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |