summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2018-02-25 17:31:49 +1100
committerTomaž Vajngerl <quikee@gmail.com>2018-02-25 13:11:56 +0100
commit1dd4590f817cce0b9e973c4767551067067702b5 (patch)
tree01a193970e75ec3d91aa7c4fb04c1e5436e2778b /vcl/qa
parent1daf4db9631bea239e6f4403741001a46174383d (diff)
vcl: remove vcl/qa/cppunit/BitmapTest.cxx from clang-format blacklist
I am actively working on bitmap tests, it is much easier if I just make a seperate commit which runs clang-format over this file, gives a clear line of demarcation so you can see what is being changed. Change-Id: I70357c935aaeac4cabdf95a98b2cc8e40fd736e0 Reviewed-on: https://gerrit.libreoffice.org/50298 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/BitmapTest.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/qa/cppunit/BitmapTest.cxx b/vcl/qa/cppunit/BitmapTest.cxx
index 22b8893a8328..8c05a12d300d 100644
--- a/vcl/qa/cppunit/BitmapTest.cxx
+++ b/vcl/qa/cppunit/BitmapTest.cxx
@@ -30,7 +30,6 @@
namespace
{
-
class BitmapTest : public CppUnit::TestFixture
{
void testCreation();
@@ -171,12 +170,13 @@ void BitmapTest::testScale()
}
}
-typedef std::unordered_map<sal_uInt64, const char *> CRCHash;
+typedef std::unordered_map<sal_uInt64, const char*> CRCHash;
-void checkAndInsert(CRCHash &rHash, sal_uInt64 nCRC, const char *pLocation)
+void checkAndInsert(CRCHash& rHash, sal_uInt64 nCRC, const char* pLocation)
{
auto it = rHash.find(nCRC);
- if (it != rHash.end()) {
+ if (it != rHash.end())
+ {
OStringBuffer aBuf("CRC collision between ");
aBuf.append(pLocation);
aBuf.append(" and ");
@@ -188,12 +188,12 @@ void checkAndInsert(CRCHash &rHash, sal_uInt64 nCRC, const char *pLocation)
rHash[nCRC] = pLocation;
}
-void checkAndInsert(CRCHash &rHash, Bitmap const & rBmp, const char *pLocation)
+void checkAndInsert(CRCHash& rHash, Bitmap const& rBmp, const char* pLocation)
{
checkAndInsert(rHash, rBmp.GetChecksum(), pLocation);
}
-Bitmap getAsBitmap(VclPtr<OutputDevice> const & pOut)
+Bitmap getAsBitmap(VclPtr<OutputDevice> const& pOut)
{
return pOut->GetBitmap(Point(), pOut->GetOutputSizePixel());
}
@@ -202,7 +202,7 @@ void BitmapTest::testCRC()
{
CRCHash aCRCs;
- Bitmap aBitmap(Size(1023,759), 24, nullptr);
+ Bitmap aBitmap(Size(1023, 759), 24, nullptr);
aBitmap.Erase(COL_BLACK);
checkAndInsert(aCRCs, aBitmap, "black bitmap");
aBitmap.Invert();