From 3b767168e92bf3dc0421df4c9435f662d0b9535d Mon Sep 17 00:00:00 2001 From: aviau <alexandre@alexandreviau.net> Date: Sun, 27 Mar 2016 11:21:30 -0400 Subject: [PATCH] fixed typos Fixes spelling-error-in-binary lintian warning Tuleap: #350 Change-Id: I014ebe76e71f9bae247d4d0726fd3e6cbe6459f2 --- src/account.h | 2 +- src/im/instant_messaging.h | 2 +- src/media/audio/sound/audiofile.h | 2 +- src/media/video/video_rtp_session.cpp | 2 +- src/ringdht/ringaccount.cpp | 2 +- src/sip/pattern.h | 4 ++-- src/sip/sdes_negotiator.cpp | 2 +- src/sip/sdes_negotiator.h | 2 +- src/sip/sdp.h | 2 +- test/sdptest.h | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/account.h b/src/account.h index 03012894c9..d9e88beebc 100644 --- a/src/account.h +++ b/src/account.h @@ -66,7 +66,7 @@ class VoipLinkException : public std::runtime_error { public: VoipLinkException(const std::string &str = "") : - std::runtime_error("VoipLinkException occured: " + str) {} + std::runtime_error("VoipLinkException occurred: " + str) {} }; /** diff --git a/src/im/instant_messaging.h b/src/im/instant_messaging.h index f95144ef07..5a2bed23ce 100644 --- a/src/im/instant_messaging.h +++ b/src/im/instant_messaging.h @@ -44,7 +44,7 @@ namespace ring { namespace InstantMessaging { struct InstantMessageException : std::runtime_error { InstantMessageException(const std::string& str="") : - std::runtime_error("InstantMessageException occured: " + str) {} + std::runtime_error("InstantMessageException occurred: " + str) {} }; /** diff --git a/src/media/audio/sound/audiofile.h b/src/media/audio/sound/audiofile.h index 527328a182..8ccaf5d2c4 100644 --- a/src/media/audio/sound/audiofile.h +++ b/src/media/audio/sound/audiofile.h @@ -32,7 +32,7 @@ namespace ring { class AudioFileException : public std::runtime_error { public: AudioFileException(const std::string &str) : - std::runtime_error("AudioFile: AudioFileException occured: " + str) {} + std::runtime_error("AudioFile: AudioFileException occurred: " + str) {} }; /** diff --git a/src/media/video/video_rtp_session.cpp b/src/media/video/video_rtp_session.cpp index 3fed2c27a2..40d5f0ab74 100644 --- a/src/media/video/video_rtp_session.cpp +++ b/src/media/video/video_rtp_session.cpp @@ -82,7 +82,7 @@ void VideoRtpSession::startSender() else RING_ERR("No valid new video parameters."); } catch (const std::exception& e) { - RING_ERR("Exception during retriving video parameters: %s", + RING_ERR("Exception during retrieving video parameters: %s", e.what()); } } else { diff --git a/src/ringdht/ringaccount.cpp b/src/ringdht/ringaccount.cpp index b1dfd09265..b1edb6099a 100644 --- a/src/ringdht/ringaccount.cpp +++ b/src/ringdht/ringaccount.cpp @@ -236,7 +236,7 @@ RingAccount::newOutgoingCall(const std::string& toUrl) if (auto call = weak_call.lock()) call->onFailure(); } else - RING_DBG("Succesfully put ICE descriptor on DHT"); + RING_DBG("Successfully put ICE descriptor on DHT"); shared_this->dht_.cancelPut(callkey, vid); } ); diff --git a/src/sip/pattern.h b/src/sip/pattern.h index 34b4f70090..cb87e83f98 100644 --- a/src/sip/pattern.h +++ b/src/sip/pattern.h @@ -30,7 +30,7 @@ namespace ring { /** * Exception object that is thrown when - * an error occured while compiling the + * an error occurred while compiling the * regular expression. */ class CompileError : public std::invalid_argument { @@ -41,7 +41,7 @@ class CompileError : public std::invalid_argument { /** * Exception object that is thrown when - * an error occured while mathing a + * an error occurred while mathing a * pattern to an expression. */ class MatchError : public std::invalid_argument { diff --git a/src/sip/sdes_negotiator.cpp b/src/sip/sdes_negotiator.cpp index 9d8521278c..e909075c48 100644 --- a/src/sip/sdes_negotiator.cpp +++ b/src/sip/sdes_negotiator.cpp @@ -69,7 +69,7 @@ SdesNegotiator::parse(const std::vector<std::string>& attributes) "(?P<mkiLength>[0-9]{1,3})\\;?)?", true)); } catch (const CompileError& exception) { - throw ParseError("A compile exception occured on a pattern."); + throw ParseError("A compile exception occurred on a pattern."); } // Take each line from the vector diff --git a/src/sip/sdes_negotiator.h b/src/sip/sdes_negotiator.h index c2e9a41c15..fd76d0204d 100644 --- a/src/sip/sdes_negotiator.h +++ b/src/sip/sdes_negotiator.h @@ -32,7 +32,7 @@ namespace ring { /** * General exception object that is thrown when - * an error occured with a regular expression + * an error occurred with a regular expression * operation. */ class ParseError : public std::invalid_argument { diff --git a/src/sip/sdp.h b/src/sip/sdp.h index 4fe27bde4a..10df6c97b3 100644 --- a/src/sip/sdp.h +++ b/src/sip/sdp.h @@ -56,7 +56,7 @@ class AudioCodec; class SdpException : public std::runtime_error { public: SdpException(const std::string& str="") : - std::runtime_error("SDP: SdpException occured: " + str) {} + std::runtime_error("SDP: SdpException occurred: " + str) {} }; class Sdp { diff --git a/test/sdptest.h b/test/sdptest.h index 4dc93437ac..fd36a935ba 100644 --- a/test/sdptest.h +++ b/test/sdptest.h @@ -62,7 +62,7 @@ class SdpSessionException : public std::exception { virtual ~SdpSessionException() throw() {} virtual const char *what() const throw() { - std::string expt("SdpSession: SdpSessionException occured: "); + std::string expt("SdpSession: SdpSessionException occurred: "); expt.append(errstr); return expt.c_str(); } -- GitLab