@@ -526,10 +526,10 @@ namespace sqlite {
526526 if (!ctxt->constructed ) new (ctxt) AggregateCtxt<ContextType>();
527527 step<Count, Functions>(db, count, vals, ctxt->obj );
528528 return ;
529- } catch (sqlite_exception &e) {
529+ } catch (const sqlite_exception &e) {
530530 sqlite3_result_error_code (db, e.get_code ());
531531 sqlite3_result_error (db, e.what (), -1 );
532- } catch (std::exception &e) {
532+ } catch (const std::exception &e) {
533533 sqlite3_result_error (db, e.what (), -1 );
534534 } catch (...) {
535535 sqlite3_result_error (db, " Unknown error" , -1 );
@@ -590,10 +590,10 @@ namespace sqlite {
590590 if (!ctxt->constructed ) new (ctxt) AggregateCtxt<ContextType>();
591591 store_result_in_db (db,
592592 static_cast <Functions*>(sqlite3_user_data (db))->second (ctxt->obj ));
593- } catch (sqlite_exception &e) {
593+ } catch (const sqlite_exception &e) {
594594 sqlite3_result_error_code (db, e.get_code ());
595595 sqlite3_result_error (db, e.what (), -1 );
596- } catch (std::exception &e) {
596+ } catch (const std::exception &e) {
597597 sqlite3_result_error (db, e.what (), -1 );
598598 } catch (...) {
599599 sqlite3_result_error (db, " Unknown error" , -1 );
@@ -641,10 +641,10 @@ namespace sqlite {
641641 try {
642642 store_result_in_db (db,
643643 (*static_cast <Function*>(sqlite3_user_data (db)))(std::forward<Values>(values)...));
644- } catch (sqlite_exception &e) {
644+ } catch (const sqlite_exception &e) {
645645 sqlite3_result_error_code (db, e.get_code ());
646646 sqlite3_result_error (db, e.what (), -1 );
647- } catch (std::exception &e) {
647+ } catch (const std::exception &e) {
648648 sqlite3_result_error (db, e.what (), -1 );
649649 } catch (...) {
650650 sqlite3_result_error (db, " Unknown error" , -1 );
0 commit comments