From c9ca1f186273a672bcd7aef2ed8358ac6c87246c Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sun, 3 Aug 2014 18:05:15 +0100 Subject: [PATCH] Rename headers to end with _p.h Frameworks have a convention of naming uninstalled headers in src/ with a _p at the end of the name, to make it clear they are not part of the API. None of the headers in KImageFormats are installed, so it is not really necessary to follow this convention, but we follow it anyway for the benefit of both humans and tools (like kapidox). --- src/imageformats/dds.cpp | 2 +- src/imageformats/{dds.h => dds_p.h} | 0 src/imageformats/eps.cpp | 2 +- src/imageformats/{eps.h => eps_p.h} | 0 src/imageformats/exr.cpp | 2 +- src/imageformats/{exr.h => exr_p.h} | 0 src/imageformats/{gimp.h => gimp_p.h} | 0 src/imageformats/hdr.cpp | 2 +- src/imageformats/{hdr.h => hdr_p.h} | 0 src/imageformats/jp2.cpp | 2 +- src/imageformats/{jp2.h => jp2_p.h} | 0 src/imageformats/pcx.cpp | 2 +- src/imageformats/{pcx.h => pcx_p.h} | 0 src/imageformats/pic.cpp | 2 +- src/imageformats/{pic.h => pic_p.h} | 0 src/imageformats/psd.cpp | 2 +- src/imageformats/{psd.h => psd_p.h} | 0 src/imageformats/ras.cpp | 2 +- src/imageformats/{ras.h => ras_p.h} | 0 src/imageformats/rgb.cpp | 2 +- src/imageformats/{rgb.h => rgb_p.h} | 0 src/imageformats/tga.cpp | 2 +- src/imageformats/{tga.h => tga_p.h} | 0 src/imageformats/xcf.cpp | 4 ++-- src/imageformats/{xcf.h => xcf_p.h} | 0 25 files changed, 13 insertions(+), 13 deletions(-) rename src/imageformats/{dds.h => dds_p.h} (100%) rename src/imageformats/{eps.h => eps_p.h} (100%) rename src/imageformats/{exr.h => exr_p.h} (100%) rename src/imageformats/{gimp.h => gimp_p.h} (100%) rename src/imageformats/{hdr.h => hdr_p.h} (100%) rename src/imageformats/{jp2.h => jp2_p.h} (100%) rename src/imageformats/{pcx.h => pcx_p.h} (100%) rename src/imageformats/{pic.h => pic_p.h} (100%) rename src/imageformats/{psd.h => psd_p.h} (100%) rename src/imageformats/{ras.h => ras_p.h} (100%) rename src/imageformats/{rgb.h => rgb_p.h} (100%) rename src/imageformats/{tga.h => tga_p.h} (100%) rename src/imageformats/{xcf.h => xcf_p.h} (100%) diff --git a/src/imageformats/dds.cpp b/src/imageformats/dds.cpp index d845b99..bef46b1 100644 --- a/src/imageformats/dds.cpp +++ b/src/imageformats/dds.cpp @@ -19,7 +19,7 @@ * rgb dds files only -- TODO */ -#include "dds.h" +#include "dds_p.h" #include #include diff --git a/src/imageformats/dds.h b/src/imageformats/dds_p.h similarity index 100% rename from src/imageformats/dds.h rename to src/imageformats/dds_p.h diff --git a/src/imageformats/eps.cpp b/src/imageformats/eps.cpp index ea1ca54..4a1ca9c 100644 --- a/src/imageformats/eps.cpp +++ b/src/imageformats/eps.cpp @@ -6,7 +6,7 @@ * * This library is distributed under the conditions of the GNU LGPL. */ -#include "eps.h" +#include "eps_p.h" #include #include diff --git a/src/imageformats/eps.h b/src/imageformats/eps_p.h similarity index 100% rename from src/imageformats/eps.h rename to src/imageformats/eps_p.h diff --git a/src/imageformats/exr.cpp b/src/imageformats/exr.cpp index da2d7be..95475ef 100644 --- a/src/imageformats/exr.cpp +++ b/src/imageformats/exr.cpp @@ -7,7 +7,7 @@ * This library is distributed under the conditions of the GNU LGPL. */ -#include "exr.h" +#include "exr_p.h" #include #include diff --git a/src/imageformats/exr.h b/src/imageformats/exr_p.h similarity index 100% rename from src/imageformats/exr.h rename to src/imageformats/exr_p.h diff --git a/src/imageformats/gimp.h b/src/imageformats/gimp_p.h similarity index 100% rename from src/imageformats/gimp.h rename to src/imageformats/gimp_p.h diff --git a/src/imageformats/hdr.cpp b/src/imageformats/hdr.cpp index 73097f2..d64b160 100644 --- a/src/imageformats/hdr.cpp +++ b/src/imageformats/hdr.cpp @@ -8,7 +8,7 @@ version 2 of the License, or (at your option) any later version. */ -#include "hdr.h" +#include "hdr_p.h" #include #include diff --git a/src/imageformats/hdr.h b/src/imageformats/hdr_p.h similarity index 100% rename from src/imageformats/hdr.h rename to src/imageformats/hdr_p.h diff --git a/src/imageformats/jp2.cpp b/src/imageformats/jp2.cpp index 8a1d7b0..dc9998c 100644 --- a/src/imageformats/jp2.cpp +++ b/src/imageformats/jp2.cpp @@ -5,7 +5,7 @@ * This library is distributed under the conditions of the GNU LGPL. */ -#include "jp2.h" +#include "jp2_p.h" #include diff --git a/src/imageformats/jp2.h b/src/imageformats/jp2_p.h similarity index 100% rename from src/imageformats/jp2.h rename to src/imageformats/jp2_p.h diff --git a/src/imageformats/pcx.cpp b/src/imageformats/pcx.cpp index 5e656ea..a6fa396 100644 --- a/src/imageformats/pcx.cpp +++ b/src/imageformats/pcx.cpp @@ -7,7 +7,7 @@ version 2 of the License, or (at your option) any later version. */ -#include "pcx.h" +#include "pcx_p.h" #include #include diff --git a/src/imageformats/pcx.h b/src/imageformats/pcx_p.h similarity index 100% rename from src/imageformats/pcx.h rename to src/imageformats/pcx_p.h diff --git a/src/imageformats/pic.cpp b/src/imageformats/pic.cpp index 64930f1..dc4dc87 100644 --- a/src/imageformats/pic.cpp +++ b/src/imageformats/pic.cpp @@ -25,7 +25,7 @@ * with his permission. */ -#include "pic.h" +#include "pic_p.h" #include #include diff --git a/src/imageformats/pic.h b/src/imageformats/pic_p.h similarity index 100% rename from src/imageformats/pic.h rename to src/imageformats/pic_p.h diff --git a/src/imageformats/psd.cpp b/src/imageformats/psd.cpp index 438286c..c1e13b9 100644 --- a/src/imageformats/psd.cpp +++ b/src/imageformats/psd.cpp @@ -17,7 +17,7 @@ * not supported */ -#include "psd.h" +#include "psd_p.h" #include #include diff --git a/src/imageformats/psd.h b/src/imageformats/psd_p.h similarity index 100% rename from src/imageformats/psd.h rename to src/imageformats/psd_p.h diff --git a/src/imageformats/ras.cpp b/src/imageformats/ras.cpp index acc58a7..9d8bb32 100644 --- a/src/imageformats/ras.cpp +++ b/src/imageformats/ras.cpp @@ -9,7 +9,7 @@ version 2 of the License, or (at your option) any later version. */ -#include "ras.h" +#include "ras_p.h" #include #include diff --git a/src/imageformats/ras.h b/src/imageformats/ras_p.h similarity index 100% rename from src/imageformats/ras.h rename to src/imageformats/ras_p.h diff --git a/src/imageformats/rgb.cpp b/src/imageformats/rgb.cpp index db39bfe..c115f0f 100644 --- a/src/imageformats/rgb.cpp +++ b/src/imageformats/rgb.cpp @@ -21,7 +21,7 @@ * saved by this filter. */ -#include "rgb.h" +#include "rgb_p.h" #include #include diff --git a/src/imageformats/rgb.h b/src/imageformats/rgb_p.h similarity index 100% rename from src/imageformats/rgb.h rename to src/imageformats/rgb_p.h diff --git a/src/imageformats/tga.cpp b/src/imageformats/tga.cpp index b48445b..2f15852 100644 --- a/src/imageformats/tga.cpp +++ b/src/imageformats/tga.cpp @@ -18,7 +18,7 @@ * uncompressed true color tga files */ -#include "tga.h" +#include "tga_p.h" #include diff --git a/src/imageformats/tga.h b/src/imageformats/tga_p.h similarity index 100% rename from src/imageformats/tga.h rename to src/imageformats/tga_p.h diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index 2bf2a9c..1800aad 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -19,7 +19,7 @@ * */ -#include "xcf.h" +#include "xcf_p.h" #include #include @@ -29,7 +29,7 @@ #include // #include -#include "gimp.h" +#include "gimp_p.h" const float INCHESPERMETER = (100.0f / 2.54f); diff --git a/src/imageformats/xcf.h b/src/imageformats/xcf_p.h similarity index 100% rename from src/imageformats/xcf.h rename to src/imageformats/xcf_p.h