@@ -100,7 +100,7 @@ namespace Firebird
100100
101101void IntlParametersBlock::toUtf8 (ClumpletWriter& pb)
102102{
103- UCHAR utf8Tag = getUtf8Tag ();
103+ const UCHAR utf8Tag = getUtf8Tag ();
104104 if (utf8Tag)
105105 {
106106 pb.insertTag (utf8Tag);
@@ -111,7 +111,7 @@ void IntlParametersBlock::toUtf8(ClumpletWriter& pb)
111111
112112void IntlParametersBlock::fromUtf8 (ClumpletWriter& pb)
113113{
114- UCHAR utf8Tag = getUtf8Tag ();
114+ const UCHAR utf8Tag = getUtf8Tag ();
115115 if (utf8Tag)
116116 {
117117 pb.deleteWithTag (utf8Tag);
@@ -128,7 +128,7 @@ void IntlParametersBlock::processParametersBlock(ProcessString* processString, C
128128 {
129129 for (pb.rewind (); !pb.isEof (); )
130130 {
131- UCHAR tag = pb.getClumpTag ();
131+ const UCHAR tag = pb.getClumpTag ();
132132 string s;
133133
134134 tagName = NULL ;
@@ -180,7 +180,7 @@ void IntlParametersBlock::processParametersBlock(ProcessString* processString, C
180180#define FB_IPB_TAG (t ) case t: if (!*tagName) *tagName = #t
181181
182182
183- IntlParametersBlock::TagType IntlDpb::checkTag (UCHAR tag, const char ** tagName)
183+ IntlParametersBlock::TagType IntlDpb::checkTag (UCHAR tag, const char ** tagName) noexcept
184184{
185185 switch (tag)
186186 {
@@ -197,13 +197,13 @@ IntlParametersBlock::TagType IntlDpb::checkTag(UCHAR tag, const char** tagName)
197197 FB_IPB_TAG (isc_dpb_owner);
198198 FB_IPB_TAG (isc_dpb_search_path);
199199 return TAG_STRING;
200+ default :
201+ return TAG_SKIP;
200202 }
201-
202- return TAG_SKIP;
203203}
204204
205205
206- IntlParametersBlock::TagType IntlSpb::checkTag (UCHAR tag, const char ** tagName)
206+ IntlParametersBlock::TagType IntlSpb::checkTag (UCHAR tag, const char ** tagName) noexcept
207207{
208208 switch (tag)
209209 {
@@ -218,13 +218,14 @@ IntlParametersBlock::TagType IntlSpb::checkTag(UCHAR tag, const char** tagName)
218218
219219 FB_IPB_TAG (isc_spb_command_line);
220220 return TAG_COMMAND_LINE;
221- }
222221
223- return TAG_SKIP;
222+ default :
223+ return TAG_SKIP;
224+ }
224225}
225226
226227
227- IntlParametersBlock::TagType IntlSpbStart::checkTag (UCHAR tag, const char ** tagName)
228+ IntlParametersBlock::TagType IntlSpbStart::checkTag (UCHAR tag, const char ** tagName) noexcept
228229{
229230 switch (tag)
230231 {
@@ -353,19 +354,19 @@ IntlParametersBlock::TagType IntlSpbStart::checkTag(UCHAR tag, const char** tagN
353354#undef FB_IPB_TAG
354355
355356
356- UCHAR IntlDpb::getUtf8Tag ()
357+ UCHAR IntlDpb::getUtf8Tag () noexcept
357358{
358359 return isc_dpb_utf8_filename;
359360}
360361
361362
362- UCHAR IntlSpb::getUtf8Tag ()
363+ UCHAR IntlSpb::getUtf8Tag () noexcept
363364{
364365 return isc_spb_utf8_filename;
365366}
366367
367368
368- UCHAR IntlSpbStart::getUtf8Tag ()
369+ UCHAR IntlSpbStart::getUtf8Tag () noexcept
369370{
370371 return 0 ;
371372}
0 commit comments