]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_vpb: Fix 'catching polymorphic type ... by value' error
authorSean Bright <sean.bright@gmail.com>
Fri, 13 Mar 2020 18:43:05 +0000 (14:43 -0400)
committerSean Bright <sean.bright@gmail.com>
Fri, 13 Mar 2020 18:44:30 +0000 (14:44 -0400)
Fixes the following compile error:

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

Change-Id: Ic87bc357d72427d77626735c83200fd278a7a649

channels/chan_vpb.cc

index 92d9287b581f238019811ce84beb28394c2d59b6..e858939ae9127ca698b9665b289c0ba794e8b940 100644 (file)
@@ -2685,7 +2685,7 @@ static enum ast_module_load_result load_module()
        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;
        }