diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-24 13:15:00 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-24 13:15:00 +0300 |
commit | 455a635080a1c1c4b164af3060836f0d8c1b3c1c (patch) | |
tree | bc77c492e9b7187d8b277d2a1cd024902c8ae3eb /src/bookmarks.c | |
parent | fbf36dfbf77701d647f0133f1532ebc42eb05e32 (diff) |
Updated for the_Foundation API changes
Diffstat (limited to 'src/bookmarks.c')
-rw-r--r-- | src/bookmarks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c index 6600ee4d..eff0146d 100644 --- a/src/bookmarks.c +++ b/src/bookmarks.c | |||
@@ -85,7 +85,7 @@ void load_Bookmarks(iBookmarks *d, const char *dirPath) { | |||
85 | if (open_File(f, readOnly_FileMode | text_FileMode)) { | 85 | if (open_File(f, readOnly_FileMode | text_FileMode)) { |
86 | const iRangecc src = range_Block(collect_Block(readAll_File(f))); | 86 | const iRangecc src = range_Block(collect_Block(readAll_File(f))); |
87 | iRangecc line = iNullRange; | 87 | iRangecc line = iNullRange; |
88 | while (nextSplit_Rangecc(&src, "\n", &line)) { | 88 | while (nextSplit_Rangecc(src, "\n", &line)) { |
89 | /* Skip empty lines. */ { | 89 | /* Skip empty lines. */ { |
90 | iRangecc ln = line; | 90 | iRangecc ln = line; |
91 | trim_Rangecc(&ln); | 91 | trim_Rangecc(&ln); |
@@ -100,9 +100,9 @@ void load_Bookmarks(iBookmarks *d, const char *dirPath) { | |||
100 | initSeconds_Time(&bm->when, strtod(line.start, &endPos)); | 100 | initSeconds_Time(&bm->when, strtod(line.start, &endPos)); |
101 | line.start = skipSpace_CStr(endPos); | 101 | line.start = skipSpace_CStr(endPos); |
102 | setRange_String(&bm->url, line); | 102 | setRange_String(&bm->url, line); |
103 | nextSplit_Rangecc(&src, "\n", &line); | 103 | nextSplit_Rangecc(src, "\n", &line); |
104 | setRange_String(&bm->title, line); | 104 | setRange_String(&bm->title, line); |
105 | nextSplit_Rangecc(&src, "\n", &line); | 105 | nextSplit_Rangecc(src, "\n", &line); |
106 | setRange_String(&bm->tags, line); | 106 | setRange_String(&bm->tags, line); |
107 | insert_Bookmarks_(d, bm); | 107 | insert_Bookmarks_(d, bm); |
108 | } | 108 | } |