Skip to content

Commit 7f5da49

Browse files
committed
Make some simple functions noexcept
1 parent 4bc74b3 commit 7f5da49

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/flex-lua-expire-output.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,31 +138,31 @@ int lua_wrapper_expire_output::tostring() const
138138
return 1;
139139
}
140140

141-
int lua_wrapper_expire_output::filename() const
141+
int lua_wrapper_expire_output::filename() const noexcept
142142
{
143143
luaX_pushstring(lua_state(), self().filename());
144144
return 1;
145145
}
146146

147-
int lua_wrapper_expire_output::maxzoom() const
147+
int lua_wrapper_expire_output::maxzoom() const noexcept
148148
{
149149
lua_pushinteger(lua_state(), self().maxzoom());
150150
return 1;
151151
}
152152

153-
int lua_wrapper_expire_output::minzoom() const
153+
int lua_wrapper_expire_output::minzoom() const noexcept
154154
{
155155
lua_pushinteger(lua_state(), self().minzoom());
156156
return 1;
157157
}
158158

159-
int lua_wrapper_expire_output::schema() const
159+
int lua_wrapper_expire_output::schema() const noexcept
160160
{
161161
luaX_pushstring(lua_state(), self().schema());
162162
return 1;
163163
}
164164

165-
int lua_wrapper_expire_output::table() const
165+
int lua_wrapper_expire_output::table() const noexcept
166166
{
167167
luaX_pushstring(lua_state(), self().table());
168168
return 1;

src/flex-lua-expire-output.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ class lua_wrapper_expire_output : public lua_wrapper_base<expire_output_t>
3737
}
3838

3939
int tostring() const;
40-
int filename() const;
41-
int maxzoom() const;
42-
int minzoom() const;
43-
int schema() const;
44-
int table() const;
40+
int filename() const noexcept;
41+
int maxzoom() const noexcept;
42+
int minzoom() const noexcept;
43+
int schema() const noexcept;
44+
int table() const noexcept;
4545

4646
}; // class lua_wrapper_expire_output
4747

src/flex-lua-locator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ int lua_wrapper_locator::tostring() const
104104
return 1;
105105
}
106106

107-
int lua_wrapper_locator::name() const
107+
int lua_wrapper_locator::name() const noexcept
108108
{
109109
luaX_pushstring(lua_state(), self().name());
110110
return 1;

src/flex-lua-locator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class lua_wrapper_locator : public lua_wrapper_base<locator_t>
3939
}
4040

4141
int tostring() const;
42-
int name() const;
42+
int name() const noexcept;
4343
int add_bbox();
4444
int add_from_db();
4545
int all_intersecting();

src/flex-lua-table.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ int lua_wrapper_table::tostring() const
488488
return 1;
489489
}
490490

491-
int lua_wrapper_table::cluster() const
491+
int lua_wrapper_table::cluster() const noexcept
492492
{
493493
lua_pushboolean(lua_state(), self().cluster_by_geom());
494494
return 1;
@@ -517,13 +517,13 @@ int lua_wrapper_table::columns() const
517517
return 1;
518518
}
519519

520-
int lua_wrapper_table::name() const
520+
int lua_wrapper_table::name() const noexcept
521521
{
522522
luaX_pushstring(lua_state(), self().name());
523523
return 1;
524524
}
525525

526-
int lua_wrapper_table::schema() const
526+
int lua_wrapper_table::schema() const noexcept
527527
{
528528
luaX_pushstring(lua_state(), self().schema());
529529
return 1;

src/flex-lua-table.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class lua_wrapper_table : public lua_wrapper_base<flex_table_t>
3737
}
3838

3939
int tostring() const;
40-
int cluster() const;
40+
int cluster() const noexcept;
4141
int columns() const;
42-
int name() const;
43-
int schema() const;
42+
int name() const noexcept;
43+
int schema() const noexcept;
4444

4545
}; // class lua_wrapper_table
4646

0 commit comments

Comments
 (0)