projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1531aa
)
src/Project/Gtk.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 9 Sep 2022 06:57:45 +0000
(14:57 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 9 Sep 2022 06:57:45 +0000
(14:57 +0800)
src/Project/Gtk.vala
patch
|
blob
|
history
diff --git
a/src/Project/Gtk.vala
b/src/Project/Gtk.vala
index
0491526
..
e05af58
100644
(file)
--- a/
src/Project/Gtk.vala
+++ b/
src/Project/Gtk.vala
@@
-259,9
+259,12
@@
namespace Project
{
var allfiles = this.filesAll(in_path,abspath);
var ret = new Gee.ArrayList<string>();
-
- var is_c = new Regex("\\.c$");
-
+ Regex is_c;
+ try {
+ is_c = new Regex("\\.c$");
+ } catch (Error e) {
+ GLib.error("Regex failed :%s", e.message);
+ }
for (var i = 0; i < allfiles.size; i ++) {
var fn = allfiles.get(i);
try {
@@
-292,7
+295,7
@@
namespace Project
}
// add the 'c' file..
ret.add(fn);
- } catch (Error e) {
+ } catch (
GLib.
Error e) {
continue;
}
}