• R/O
  • SSH

libqttools: Commit

This library contains code that extends and simplifies different operations
for C++ language based programs which use Qt5 framework as well


Commit MetaInfo

Revisión7793825f93f894e3c8a9eb4d0a716d52fc8941ca (tree)
Tiempo2018-10-07 12:14:47
AutorSergey Gusarov
CommiterSergey Gusarov

Log Message

Removed CT_NOEXCEPT from throwing functions

Cambiar Resumen

Diferencia incremental

diff -r 98bedb2ea9c9 -r 7793825f93f8 .hgsubstate
--- a/.hgsubstate Mon Dec 11 02:01:44 2017 +0300
+++ b/.hgsubstate Sun Oct 07 06:14:47 2018 +0300
@@ -1,2 +1,2 @@
1-5d2fcafc2500468364b556d282e3b9c332665490 libcpptools
2-d6a263a39f345f7ebb8d0865b452104bfad4b198 pyrepo
1+0e42c6bc50868881ba1a9e02063cc8c0e79dbdd6 libcpptools
2+a8af1ec9deb3d34e87c981979485193b2e365491 pyrepo
diff -r 98bedb2ea9c9 -r 7793825f93f8 include/qttools/file_utils.hpp
--- a/include/qttools/file_utils.hpp Mon Dec 11 02:01:44 2017 +0300
+++ b/include/qttools/file_utils.hpp Sun Oct 07 06:14:47 2018 +0300
@@ -45,20 +45,20 @@
4545 * @return size of the file @param fileName in bytes.
4646 * Or -1 if some error happened
4747 */
48-QTT_SHARED_API qint64 getFileSize(const QString& fileName) CT_NOEXCEPT;
48+QTT_SHARED_API qint64 getFileSize(const QString& fileName);
4949
5050 /**
5151 * @return size of the file @param fileName in bytes.
5252 * Or 0 if some error happened. That functions makes smart convertion of file size to T
5353 */
5454 template<typename T>
55-T getFileSize(const QString& fileName) CT_NOEXCEPT;
55+T getFileSize(const QString& fileName);
5656
5757 // It's forbidden. Don't use it
5858 template<>
59-qint64 getFileSize(const QString& fileName) CT_NOEXCEPT;
59+qint64 getFileSize(const QString& fileName);
6060
61-QTT_SHARED_API QByteArray readAllFromFile(const QString& fileName) CT_NOEXCEPT;
61+QTT_SHARED_API QByteArray readAllFromFile(const QString& fileName);
6262
6363 /**
6464 * @brief Read file @param fileName and try to determine whether it contains ascii text or not
diff -r 98bedb2ea9c9 -r 7793825f93f8 src/file_utils.cpp
--- a/src/file_utils.cpp Mon Dec 11 02:01:44 2017 +0300
+++ b/src/file_utils.cpp Sun Oct 07 06:14:47 2018 +0300
@@ -74,7 +74,7 @@
7474 return kStatus;
7575 }
7676
77-qint64 getFileSize(const QString& fileName) CT_NOEXCEPT
77+qint64 getFileSize(const QString& fileName)
7878 {
7979 CPT_THROW_IF(fileName.isEmpty(), cpptools::exceptions::IllegalArgumentException, "fileName is empty");
8080
@@ -99,7 +99,7 @@
9999 }
100100
101101 template<>
102-uint32_t getFileSize(const QString& fileName) CT_NOEXCEPT
102+uint32_t getFileSize(const QString& fileName)
103103 {
104104 const qint64 kSize = getFileSize(fileName);
105105 uint32_t convertedSize;
@@ -117,7 +117,7 @@
117117 return convertedSize;
118118 }
119119
120-QByteArray readAllFromFile(const QString& fileName) CT_NOEXCEPT
120+QByteArray readAllFromFile(const QString& fileName)
121121 {
122122 CPT_THROW_IF(fileName.isEmpty(), cpptools::exceptions::IllegalArgumentException, "fileName is empty");
123123
Show on old repository browser