summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Graphics.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-08 11:28:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-08 15:35:18 +0100
commitb536e10390c171e96b6477c04d66023a1da543c4 (patch)
tree4c04275831cea51f0a343d00e382f519a08bcd90 /vcl/qt5/Qt5Graphics.cxx
parent958c09acc1058a4a0eba28ac94f2883fff64d600 (diff)
Retrofit "KeepEmptyLinesAtTheStartOfBlocks: false" into .clang-format
...even if that can cause reformatting of already formatted code. The problem I came across is that without this something like > namespace { > > void f1(); > > void f2(); > > } (which is quite a common style in the current code base) would be changed to > namespace > { > > void f1(); > > void f2(); > } instead of > namespace > { > void f1(); > > void f2(); > } and I found no other clang-format style option that would result in the presence or absence of an empty line be identical at the start and end of the namespace block. vmiklos asked to reformat the existing new (i.e., non-blacklisted) files at the same time, so this commit includes that. Some of those new files had not been formatted at all, so this commit includes their full reformatting changes. Change-Id: I54daf0c11098d07d02c802104cf7f56372e61f7c Reviewed-on: https://gerrit.libreoffice.org/44450 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/qt5/Qt5Graphics.cxx')
-rw-r--r--vcl/qt5/Qt5Graphics.cxx51
1 files changed, 22 insertions, 29 deletions
diff --git a/vcl/qt5/Qt5Graphics.cxx b/vcl/qt5/Qt5Graphics.cxx
index eae47c5f21e9..72226fbc308f 100644
--- a/vcl/qt5/Qt5Graphics.cxx
+++ b/vcl/qt5/Qt5Graphics.cxx
@@ -47,68 +47,61 @@ Qt5Graphics::~Qt5Graphics()
{
// release the text styles
for (int i = 0; i < MAX_FALLBACK; ++i)
- delete m_pTextStyle[ i ];
+ delete m_pTextStyle[i];
}
-void Qt5Graphics::ChangeQImage( QImage *pQImage )
+void Qt5Graphics::ChangeQImage(QImage* pQImage)
{
m_pQImage = pQImage;
ResetClipRegion();
}
-SalGraphicsImpl* Qt5Graphics::GetImpl() const
-{
- return nullptr;
-}
+SalGraphicsImpl* Qt5Graphics::GetImpl() const { return nullptr; }
-SystemGraphicsData Qt5Graphics::GetGraphicsData() const
-{
- return SystemGraphicsData();
-}
+SystemGraphicsData Qt5Graphics::GetGraphicsData() const { return SystemGraphicsData(); }
-bool Qt5Graphics::supportsOperation( OutDevSupportType eType ) const
+bool Qt5Graphics::supportsOperation(OutDevSupportType eType) const
{
- switch( eType )
+ switch (eType)
{
- case OutDevSupportType::B2DDraw:
- case OutDevSupportType::TransparentRect:
- return true;
- default:
- return false;
+ case OutDevSupportType::B2DDraw:
+ case OutDevSupportType::TransparentRect:
+ return true;
+ default:
+ return false;
}
}
#if ENABLE_CAIRO_CANVAS
-bool Qt5Graphics::SupportsCairo() const
-{
- return false;
-}
+bool Qt5Graphics::SupportsCairo() const { return false; }
-cairo::SurfaceSharedPtr Qt5Graphics::CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const
+cairo::SurfaceSharedPtr
+Qt5Graphics::CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const
{
return nullptr;
}
-cairo::SurfaceSharedPtr Qt5Graphics::CreateSurface(const OutputDevice& rRefDevice, int x, int y, int width, int height) const
+cairo::SurfaceSharedPtr Qt5Graphics::CreateSurface(const OutputDevice& rRefDevice, int x, int y,
+ int width, int height) const
{
return nullptr;
}
-cairo::SurfaceSharedPtr Qt5Graphics::CreateBitmapSurface(const OutputDevice& rRefDevice, const BitmapSystemData& rData, const Size& rSize) const
+cairo::SurfaceSharedPtr Qt5Graphics::CreateBitmapSurface(const OutputDevice& rRefDevice,
+ const BitmapSystemData& rData,
+ const Size& rSize) const
{
return nullptr;
}
-css::uno::Any Qt5Graphics::GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& rSize) const
+css::uno::Any Qt5Graphics::GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface,
+ const basegfx::B2ISize& rSize) const
{
return css::uno::Any();
}
-SystemFontData Qt5Graphics::GetSysFontData( int nFallbacklevel ) const
-{
- return SystemFontData();
-}
+SystemFontData Qt5Graphics::GetSysFontData(int nFallbacklevel) const { return SystemFontData(); }
#endif