aboutsummaryrefslogtreecommitdiff
path: root/misc/tellico-kde4/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tellico-kde4/files')
-rw-r--r--misc/tellico-kde4/files/patch-filehandler.h10
-rw-r--r--misc/tellico-kde4/files/patch-image.cpp14
-rw-r--r--misc/tellico-kde4/files/patch-image.h12
3 files changed, 26 insertions, 10 deletions
diff --git a/misc/tellico-kde4/files/patch-filehandler.h b/misc/tellico-kde4/files/patch-filehandler.h
deleted file mode 100644
index 7fa9e472c8a7..000000000000
--- a/misc/tellico-kde4/files/patch-filehandler.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/filehandler.h.orig Tue Feb 24 01:11:58 2004
-+++ src/filehandler.h Tue Feb 24 01:08:37 2004
-@@ -39,6 +39,7 @@
-
- friend class MainWindow;
- friend const Data::Image& addImage(const KURL& url);
-+class FileRef;
- friend class FileRef;
-
- public:
diff --git a/misc/tellico-kde4/files/patch-image.cpp b/misc/tellico-kde4/files/patch-image.cpp
new file mode 100644
index 000000000000..fb0621bd7d8a
--- /dev/null
+++ b/misc/tellico-kde4/files/patch-image.cpp
@@ -0,0 +1,14 @@
+--- src/image.cpp.orig Mon Mar 15 22:39:08 2004
++++ src/image.cpp Mon Mar 15 22:40:08 2004
+@@ -21,11 +21,6 @@
+
+ using Bookcase::Data::Image;
+
+-inline
+-bool operator== (const Image& img1, const Image& img2) {
+- return img1.id() == img2.id();
+-}
+-
+ // I'm using the MD5 hash as the id. I consider it rather unlikely that two images in one
+ // collection could ever have the same has, and this lets me do a fast comparison of two images
+ // simply by comparing their ids.
diff --git a/misc/tellico-kde4/files/patch-image.h b/misc/tellico-kde4/files/patch-image.h
new file mode 100644
index 000000000000..8e0ad07073c6
--- /dev/null
+++ b/misc/tellico-kde4/files/patch-image.h
@@ -0,0 +1,12 @@
+--- src/image.h.orig Mon Mar 15 22:39:01 2004
++++ src/image.h Mon Mar 15 22:39:59 2004
+@@ -55,6 +55,8 @@
+ } // end namespace
+ } // end namespace
+
+-bool operator== (const Bookcase::Data::Image& img1, const Bookcase::Data::Image& img2);
++inline bool operator== (const Bookcase::Data::Image& img1, const Bookcase::Data::Image& img2) {
++ return img1.id() == img2.id();
++};
+
+ #endif