Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Fix compilation with gcc 4.5 |
| 2 | |
| 3 | [FBreader Ticket #340] -- http://old.fbreader.org/mantis/view.php?id=340 |
| 4 | |
| 5 | Without that patch we have: |
| 6 | Compiling Library.o ...Library.cpp:42:1: error: 'Library::Library' names the constructor, not the type |
| 7 | |
| 8 | Upstream-Status: Accepted [Fixed in Version 0.14.0] |
| 9 | |
| 10 | --- fbreader-0.12.10-orig/fbreader/src/library/Library.cpp 2010-04-01 15:14:24.000000000 +0200 |
| 11 | +++ fbreader-0.12.10/fbreader/src/library/Library.cpp 2010-04-13 13:34:06.000000000 +0200 |
| 12 | @@ -39,7 +39,7 @@ |
| 13 | shared_ptr<Library> Library::ourInstance; |
| 14 | const size_t Library::MaxRecentListSize = 10; |
| 15 | |
| 16 | -Library::Library &Library::Instance() { |
| 17 | +Library &Library::Instance() { |
| 18 | if (ourInstance.isNull()) { |
| 19 | ourInstance = new Library(); |
| 20 | } |