• R/O
  • SSH
  • HTTPS

tortoisesvn: コミット


コミットメタ情報

リビジョン28981 (tree)
日時2020-09-26 15:55:01
作者stefankueng

ログメッセージ

remove all throw() statements, let the compiler/optimizer deal with this instead.
It doesn't help performance in our case, but the downside if declared wrong is too big (abort() is then called!).

変更サマリ

差分

--- trunk/src/LogCache/Containers/ContainerException.cpp (revision 28980)
+++ trunk/src/LogCache/Containers/ContainerException.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2009, 2013 - TortoiseSVN
3+// Copyright (C) 2009, 2013, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -32,7 +32,7 @@
3232 }
3333
3434
35-CContainerException::~CContainerException() throw()
35+CContainerException::~CContainerException()
3636 {
3737 }
3838
@@ -39,7 +39,7 @@
3939
4040 // implement message access
4141
42-const char* CContainerException::what() const throw()
42+const char* CContainerException::what() const
4343 {
4444 return message;
4545 }
--- trunk/src/LogCache/Containers/ContainerException.h (revision 28980)
+++ trunk/src/LogCache/Containers/ContainerException.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2009, 2013 - TortoiseSVN
3+// Copyright (C) 2009, 2013, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -38,11 +38,11 @@
3838 // construction / destruction
3939
4040 CContainerException(const char* message);
41- virtual ~CContainerException() throw();
41+ virtual ~CContainerException();
4242
4343 // implement message access
4444
45- virtual const char* what() const throw();
45+ virtual const char* what() const;
4646 };
4747
4848 }
--- trunk/src/LogCache/Streams/BinaryOutStream.cpp (revision 28980)
+++ trunk/src/LogCache/Streams/BinaryOutStream.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2009, 2012 - TortoiseSVN
3+// Copyright (C) 2007-2009, 2012, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -28,7 +28,7 @@
2828
2929 // buffer management
3030
31-void CBinaryOutStreamBase::Flush() throw()
31+void CBinaryOutStreamBase::Flush()
3232 {
3333 WriteThisStream();
3434 current = data.get();
--- trunk/src/LogCache/Streams/BinaryOutStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/BinaryOutStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007, 2012 - TortoiseSVN
3+// Copyright (C) 2007, 2012, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -53,7 +53,7 @@
5353
5454 // buffer management
5555
56- void Flush() throw();
56+ void Flush();
5757
5858 protected:
5959
@@ -65,7 +65,7 @@
6565
6666 // add data to the stream
6767
68- void Add (const unsigned char* source, size_t byteCount) throw()
68+ void Add (const unsigned char* source, size_t byteCount)
6969 {
7070 while (current + byteCount > last)
7171 Flush();
@@ -74,7 +74,7 @@
7474 current += byteCount;
7575 }
7676
77- void Add (unsigned char c) throw()
77+ void Add (unsigned char c)
7878 {
7979 if (current == last)
8080 Flush();
--- trunk/src/LogCache/Streams/DiffIntegerInStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/DiffIntegerInStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2009 - TortoiseSVN
3+// Copyright (C) 2007-2009, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -57,7 +57,7 @@
5757
5858 // data access
5959
60- V GetValue() throw()
60+ V GetValue()
6161 {
6262 lastValue += Base::GetValue();
6363 return lastValue;
--- trunk/src/LogCache/Streams/DiffIntegerOutStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/DiffIntegerOutStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2009 - TortoiseSVN
3+// Copyright (C) 2007-2009, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -53,7 +53,7 @@
5353
5454 // add data to the stream
5555
56- void Add (V value) throw()
56+ void Add (V value)
5757 {
5858 Base::Add (value - lastValue);
5959 lastValue = value;
--- trunk/src/LogCache/Streams/PackedDWORDInStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/PackedDWORDInStream.h (revision 28981)
@@ -51,7 +51,7 @@
5151 // data access
5252
5353 DWORD InternalGetValue();
54- DWORD GetValue() throw();
54+ DWORD GetValue();
5555
5656 public:
5757
@@ -73,7 +73,7 @@
7373 // data access
7474 ///////////////////////////////////////////////////////////////
7575
76-inline DWORD CPackedDWORDInStreamBase::GetValue() throw()
76+inline DWORD CPackedDWORDInStreamBase::GetValue()
7777 {
7878 for (;;)
7979 {
--- trunk/src/LogCache/Streams/PackedDWORDOutStream.cpp (revision 28980)
+++ trunk/src/LogCache/Streams/PackedDWORDOutStream.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2009 - TortoiseSVN
3+// Copyright (C) 2007-2009, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -27,7 +27,7 @@
2727
2828 // add data to the stream
2929
30-void CPackedDWORDOutStreamBase::FlushLastValue() throw()
30+void CPackedDWORDOutStreamBase::FlushLastValue()
3131 {
3232 if (count > 0)
3333 {
--- trunk/src/LogCache/Streams/PackedDWORDOutStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/PackedDWORDOutStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2008, 2012 - TortoiseSVN
3+// Copyright (C) 2007-2008, 2012, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -72,12 +72,12 @@
7272
7373 // add data to the stream
7474
75- void InternalAdd (DWORD value) throw();
76- void FlushLastValue() throw();
75+ void InternalAdd (DWORD value);
76+ void FlushLastValue();
7777
7878 // compression (RLE) support
7979
80- void Add (DWORD value) throw();
80+ void Add (DWORD value);
8181
8282 virtual void FlushData() override;
8383
@@ -98,7 +98,7 @@
9898 // add data to the stream
9999 ///////////////////////////////////////////////////////////////
100100
101-inline void CPackedDWORDOutStreamBase::InternalAdd (DWORD value) throw()
101+inline void CPackedDWORDOutStreamBase::InternalAdd (DWORD value)
102102 {
103103 for (;;)
104104 {
@@ -117,7 +117,7 @@
117117 // compress incoming data and write it to the stream
118118 ///////////////////////////////////////////////////////////////
119119
120-inline void CPackedDWORDOutStreamBase::Add (DWORD value) throw()
120+inline void CPackedDWORDOutStreamBase::Add (DWORD value)
121121 {
122122 // that is the only value we cannot represent
123123
--- trunk/src/LogCache/Streams/PackedIntegerInStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/PackedIntegerInStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2008, 2015 - TortoiseSVN
3+// Copyright (C) 2007-2008, 2015, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -45,7 +45,7 @@
4545
4646 // data access
4747
48- int GetValue() throw()
48+ int GetValue()
4949 {
5050 DWORD v = CPackedDWORDInStreamBase::GetValue();
5151 return (v & 1)
--- trunk/src/LogCache/Streams/PackedIntegerOutStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/PackedIntegerOutStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2007 - TortoiseSVN
3+// Copyright (C) 2007-2007, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -45,7 +45,7 @@
4545
4646 // add data to the stream
4747
48- void Add (int value) throw()
48+ void Add (int value)
4949 {
5050 DWORD usignedValue = value >= 0
5151 ? 2* value
--- trunk/src/LogCache/Streams/PackedTime64InStream.cpp (revision 28980)
+++ trunk/src/LogCache/Streams/PackedTime64InStream.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2009, 2014 - TortoiseSVN
3+// Copyright (C) 2007-2009, 2014, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -36,7 +36,7 @@
3636
3737 // data access
3838
39-__time64_t CPackedTime64InStreamBase::GetValue() throw()
39+__time64_t CPackedTime64InStreamBase::GetValue()
4040 {
4141 // get header info
4242
--- trunk/src/LogCache/Streams/PackedTime64InStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/PackedTime64InStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2008, 2012 - TortoiseSVN
3+// Copyright (C) 2007-2008, 2012, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -49,7 +49,7 @@
4949
5050 // data access
5151
52- __time64_t GetValue() throw();
52+ __time64_t GetValue();
5353
5454 public:
5555
--- trunk/src/LogCache/Streams/PackedTime64OutStream.cpp (revision 28980)
+++ trunk/src/LogCache/Streams/PackedTime64OutStream.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2009, 2014-2015 - TortoiseSVN
3+// Copyright (C) 2007-2009, 2014-2015, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -27,7 +27,7 @@
2727
2828 // add data to the stream
2929
30-void CPackedTime64OutStreamBase::Add (__time64_t value) throw()
30+void CPackedTime64OutStreamBase::Add (__time64_t value)
3131 {
3232 // store only diffs
3333
--- trunk/src/LogCache/Streams/PackedTime64OutStream.h (revision 28980)
+++ trunk/src/LogCache/Streams/PackedTime64OutStream.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2007 - TortoiseSVN
3+// Copyright (C) 2007-2007, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -56,7 +56,7 @@
5656
5757 // add data to the stream
5858
59- void Add (__time64_t value) throw();
59+ void Add (__time64_t value);
6060
6161 public:
6262
--- trunk/src/LogCache/Streams/StreamException.cpp (revision 28980)
+++ trunk/src/LogCache/Streams/StreamException.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2009, 2013 - TortoiseSVN
3+// Copyright (C) 2009, 2013, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -29,7 +29,7 @@
2929 }
3030
3131
32-CStreamException::~CStreamException() throw()
32+CStreamException::~CStreamException()
3333 {
3434 }
3535
@@ -36,7 +36,7 @@
3636
3737 // implement message access
3838
39-const char* CStreamException::what() const throw()
39+const char* CStreamException::what() const
4040 {
4141 return message;
4242 }
--- trunk/src/LogCache/Streams/StreamException.h (revision 28980)
+++ trunk/src/LogCache/Streams/StreamException.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2009, 2013 - TortoiseSVN
3+// Copyright (C) 2009, 2013, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -35,11 +35,11 @@
3535 // construction / destruction
3636
3737 CStreamException(const char* message);
38- virtual ~CStreamException() throw();
38+ virtual ~CStreamException();
3939
4040 // implement message access
4141
42- virtual const char* what() const throw();
42+ virtual const char* what() const;
4343 };
4444
4545 #endif
--- trunk/src/SubWCRev/Register.cpp (revision 28980)
+++ trunk/src/SubWCRev/Register.cpp (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2005-2008, 2010-2011, 2014 - TortoiseSVN
3+// Copyright (C) 2005-2008, 2010-2011, 2014, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -425,7 +425,7 @@
425425 return hr;
426426 }
427427
428-static inline UINT WINAPI GetDirLen(LPCOLESTR lpszPathName) throw()
428+static inline UINT WINAPI GetDirLen(LPCOLESTR lpszPathName)
429429 {
430430 ATLASSERT(lpszPathName != NULL);
431431
--- trunk/src/TortoiseProc/RevisionGraph/RevisionGraphState.h (revision 28980)
+++ trunk/src/TortoiseProc/RevisionGraph/RevisionGraphState.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2009, 2015 - TortoiseSVN
3+// Copyright (C) 2009, 2015, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -54,11 +54,11 @@
5454
5555 /// data access
5656
57- T* operator->() const throw();
58- T& operator*() const throw();
59- bool operator!() const throw();
57+ T* operator->() const;
58+ T& operator*() const;
59+ bool operator!() const;
6060
61- T* get() const throw();
61+ T* get() const;
6262
6363 private:
6464
@@ -132,25 +132,25 @@
132132 // data access
133133
134134 template <class T>
135-T* CSyncPointer<T>::operator->() const throw()
135+T* CSyncPointer<T>::operator->() const
136136 {
137137 return ptr;
138138 }
139139
140140 template <class T>
141-T& CSyncPointer<T>::operator*() const throw()
141+T& CSyncPointer<T>::operator*() const
142142 {
143143 return *ptr;
144144 }
145145
146146 template <class T>
147-bool CSyncPointer<T>::operator!() const throw()
147+bool CSyncPointer<T>::operator!() const
148148 {
149149 return ptr == NULL;
150150 }
151151
152152 template <class T>
153-T* CSyncPointer<T>::get() const throw()
153+T* CSyncPointer<T>::get() const
154154 {
155155 return ptr;
156156 }
--- trunk/src/Utils/StringReferenceWrapper.h (revision 28980)
+++ trunk/src/Utils/StringReferenceWrapper.h (revision 28981)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2015 - TortoiseSVN
3+// Copyright (C) 2015, 2020 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -79,7 +79,7 @@
7979 // Warning: The caller must ensure the lifetime of the buffer outlives this
8080 // object as it does not make a copy of the wide string memory.
8181
82- StringReferenceWrapper(_In_reads_(length) PCWSTR stringRef, _In_ UINT32 length) throw()
82+ StringReferenceWrapper(_In_reads_(length) PCWSTR stringRef, _In_ UINT32 length)
8383 {
8484 HRESULT hr = StringReferenceWrapperDynamicLoader::Instance().WindowsCreateStringReference(stringRef, length, &_header, &_hstring);
8585
@@ -89,7 +89,7 @@
8989 }
9090 }
9191
92- StringReferenceWrapper(_In_reads_(length) const CString& stringRef) throw()
92+ StringReferenceWrapper(_In_reads_(length) const CString& stringRef)
9393 {
9494 HRESULT hr = StringReferenceWrapperDynamicLoader::Instance().WindowsCreateStringReference(stringRef, stringRef.GetLength(), &_header, &_hstring);
9595
@@ -105,7 +105,7 @@
105105 }
106106
107107 template <size_t N>
108- StringReferenceWrapper(_In_reads_(N) wchar_t const (&stringRef)[N]) throw()
108+ StringReferenceWrapper(_In_reads_(N) wchar_t const (&stringRef)[N])
109109 {
110110 UINT32 length = N-1;
111111 HRESULT hr = StringReferenceWrapperDynamicLoader::Instance().WindowsCreateStringReference(stringRef, length, &_header, &_hstring);
@@ -117,7 +117,7 @@
117117 }
118118
119119 template <size_t _>
120- StringReferenceWrapper(_In_reads_(_) wchar_t (&stringRef)[_]) throw()
120+ StringReferenceWrapper(_In_reads_(_) wchar_t (&stringRef)[_])
121121 {
122122 UINT32 length;
123123 HRESULT hr = SizeTToUInt32(wcslen(stringRef), &length);
@@ -130,7 +130,7 @@
130130 StringReferenceWrapperDynamicLoader::Instance().WindowsCreateStringReference(stringRef, length, &_header, &_hstring);
131131 }
132132
133- HSTRING Get() const throw()
133+ HSTRING Get() const
134134 {
135135 return _hstring;
136136 }
旧リポジトリブラウザで表示