diff options
Diffstat (limited to 'Swift/Controllers/Chat/ChatMessageParser.cpp')
| -rw-r--r-- | Swift/Controllers/Chat/ChatMessageParser.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Swift/Controllers/Chat/ChatMessageParser.cpp b/Swift/Controllers/Chat/ChatMessageParser.cpp index 1a822a1..31be451 100644 --- a/Swift/Controllers/Chat/ChatMessageParser.cpp +++ b/Swift/Controllers/Chat/ChatMessageParser.cpp @@ -132,7 +132,7 @@ namespace Swift {                          }                      } -                    catch (std::runtime_error) { +                    catch (const std::runtime_error&) {                          /* Basically too expensive to compute the regex results and it gave up, so pass through as text */                          newMessage.append(part);                      } @@ -185,7 +185,7 @@ namespace Swift {                              resultMessage.append(std::make_shared<ChatWindow::ChatTextMessagePart>(std::string(start, text.end())));                          }                      } -                    catch (std::runtime_error) { +                    catch (const std::runtime_error&) {                          /* Basically too expensive to compute the regex results and it gave up, so pass through as text */                          resultMessage.append(part);                      } | 
 Swift
 Swift