[Asterisk-code-review] chan_vpb: Fix 'catching polymorphic type ... by value' error (asterisk[13])

Sean Bright asteriskteam at digium.com
Fri Mar 13 13:44:21 CDT 2020


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13942 )


Change subject: chan_vpb: Fix 'catching polymorphic type ... by value' error
......................................................................

chan_vpb: Fix 'catching polymorphic type ... by value' error

Fixes the following compile error:

    chan_vpb.cc:2688:26: error: catching polymorphic type
        ‘class std::exception’ by value

Change-Id: Ic87bc357d72427d77626735c83200fd278a7a649
---
M channels/chan_vpb.cc
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/42/13942/1

diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc
index 92d9287..e858939 100644
--- a/channels/chan_vpb.cc
+++ b/channels/chan_vpb.cc
@@ -2685,7 +2685,7 @@
 	ast_format_cap_append(vpb_tech_indicate.capabilities, ast_format_slin, 0);
 	try {
 		num_cards = vpb_get_num_cards();
-	} catch (std::exception e) {
+	} catch (std::exception&) {
 		ast_log(LOG_ERROR, "No Voicetronix cards detected\n");
 		return AST_MODULE_LOAD_DECLINE;
 	}

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13942
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: Ic87bc357d72427d77626735c83200fd278a7a649
Gerrit-Change-Number: 13942
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200313/6ed0b310/attachment.html>


More information about the asterisk-code-review mailing list