summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-08 13:53:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-09 21:04:23 +0100
commit34f333445c54c87f3afe777fa467f7a2bb122208 (patch)
tree542b1f2344c9da43ca33da8afec890acc01e712e /sdext/source
parentb4f38d8b788018b3f88421d72bb82ad3bdeef9e2 (diff)
loplugin:indentation in sd
Change-Id: I8ce307b8c467ac1e3f19faca1df15a079bc14169 Reviewed-on: https://gerrit.libreoffice.org/67563 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx10
-rw-r--r--sdext/source/pdfimport/tree/style.cxx2
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx2
-rw-r--r--sdext/source/presenter/PresenterProtocolHandler.cxx2
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.cxx2
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.cxx4
-rw-r--r--sdext/source/presenter/PresenterTheme.cxx8
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx2
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx2
9 files changed, 17 insertions, 17 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index b50a80a2ff48..ceedace97f6a 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -615,8 +615,8 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< std::unique_pt
// move element to current paragraph
- if (! pCurPara ) // new paragraph, insert one
- {
+ if (! pCurPara ) // new paragraph, insert one
+ {
pCurPara = ElementFactory::createParagraphElement( nullptr );
// set parent
pCurPara->Parent = &elem;
@@ -627,7 +627,7 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< std::unique_pt
// update next_element which is now invalid
next_page_element = page_element;
++ next_page_element;
- }
+ }
Element* pCurEle = page_element->get();
Element::setParent( page_element, pCurPara );
OSL_ENSURE( !pText || pCurEle == pText || pCurEle == pLink, "paragraph child list in disorder" );
@@ -709,9 +709,9 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
{
pCur->updateGeometryWith( pNext );
// append text to current element
- pCur->Text.append( pNext->Text );
+ pCur->Text.append( pNext->Text );
- str = pCur->Text.getStr();
+ str = pCur->Text.getStr();
for(int i=0; i< str.getLength(); i++)
{
sal_Int16 nType = GetBreakIterator()->getScriptType( str, i );
diff --git a/sdext/source/pdfimport/tree/style.cxx b/sdext/source/pdfimport/tree/style.cxx
index b00920a62f93..dd4afd89579b 100644
--- a/sdext/source/pdfimport/tree/style.cxx
+++ b/sdext/source/pdfimport/tree/style.cxx
@@ -189,7 +189,7 @@ void StyleContainer::impl_emitStyle( sal_Int32 nStyleId,
if( it != m_aIdToStyle.end() )
{
const HashedStyle& rStyle = it->second.style;
- PropertyMap aProps( rStyle.Properties );
+ PropertyMap aProps( rStyle.Properties );
if( !rStyle.IsSubStyle )
aProps[ "style:name" ] = getStyleName( nStyleId );
if (rStyle.Name == "draw:stroke-dash")
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
index b0a6ac41ba94..5b1e13c909c2 100644
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
for (int j = k; j < argc; ++j)
argv[j] = argv[j+2];
}
- ++k;
+ ++k;
}
// read config file
diff --git a/sdext/source/presenter/PresenterProtocolHandler.cxx b/sdext/source/presenter/PresenterProtocolHandler.cxx
index 6311f322cbce..150e54755028 100644
--- a/sdext/source/presenter/PresenterProtocolHandler.cxx
+++ b/sdext/source/presenter/PresenterProtocolHandler.cxx
@@ -547,7 +547,7 @@ bool GotoNextEffectCommand::IsEnabled() const
if ( ! mpPresenterController->GetSlideShowController().is())
return false;
- return ( mpPresenterController->GetSlideShowController()->getNextSlideIndex() < mpPresenterController->GetSlideShowController()->getSlideCount() );
+ return ( mpPresenterController->GetSlideShowController()->getNextSlideIndex() < mpPresenterController->GetSlideShowController()->getSlideCount() );
}
diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx
index 55606ad9b9e9..e6988c25fb6c 100644
--- a/sdext/source/presenter/PresenterSlideShowView.cxx
+++ b/sdext/source/presenter/PresenterSlideShowView.cxx
@@ -110,7 +110,7 @@ void PresenterSlideShowView::LateInit()
if (xCC.is())
{
- mxTopPane.set(xCC->getResource(mxViewId->getAnchor()->getAnchor()), UNO_QUERY);
+ mxTopPane.set(xCC->getResource(mxViewId->getAnchor()->getAnchor()), UNO_QUERY);
Reference<XPane> xPane (xCC->getResource(mxViewId->getAnchor()), UNO_QUERY_THROW);
diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx
index ad07a02b4b27..95db3970d6e5 100644
--- a/sdext/source/presenter/PresenterSlideSorter.cxx
+++ b/sdext/source/presenter/PresenterSlideSorter.cxx
@@ -921,7 +921,7 @@ void PresenterSlideSorter::PaintPreview (
nullptr,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
- rxCanvas->drawBitmap(xAnimationIcon, aViewState, aAnimationRenderState);
+ rxCanvas->drawBitmap(xAnimationIcon, aViewState, aAnimationRenderState);
}
if( bTransition )
{
@@ -935,7 +935,7 @@ void PresenterSlideSorter::PaintPreview (
nullptr,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
- rxCanvas->drawBitmap(xTransitionIcon, aViewState, aTransitionRenderState);
+ rxCanvas->drawBitmap(xTransitionIcon, aViewState, aTransitionRenderState);
}
}
}
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx
index bb80862ebc30..f7189e27add0 100644
--- a/sdext/source/presenter/PresenterTheme.cxx
+++ b/sdext/source/presenter/PresenterTheme.cxx
@@ -745,8 +745,8 @@ std::shared_ptr<PresenterTheme::Theme> ReadContext::ReadTheme (
std::shared_ptr<PresenterTheme::Theme> pTheme;
OUString sCurrentThemeName (rsThemeName);
- if (sCurrentThemeName.isEmpty())
- {
+ if (sCurrentThemeName.isEmpty())
+ {
// No theme name given. Look up the CurrentTheme property.
rConfiguration.GetConfigurationNode("Presenter/CurrentTheme") >>= sCurrentThemeName;
if (sCurrentThemeName.isEmpty())
@@ -754,7 +754,7 @@ std::shared_ptr<PresenterTheme::Theme> ReadContext::ReadTheme (
// Still no name. Use "DefaultTheme".
sCurrentThemeName = "DefaultTheme";
}
- }
+ }
Reference<container::XNameAccess> xThemes (
rConfiguration.GetConfigurationNode("Presenter/Themes"),
@@ -765,7 +765,7 @@ std::shared_ptr<PresenterTheme::Theme> ReadContext::ReadTheme (
Sequence<OUString> aKeys (xThemes->getElementNames());
for (sal_Int32 nItemIndex=0; nItemIndex < aKeys.getLength(); ++nItemIndex)
{
- const OUString& rsKey (aKeys[nItemIndex]);
+ const OUString& rsKey (aKeys[nItemIndex]);
Reference<container::XHierarchicalNameAccess> xTheme (
xThemes->getByName(rsKey), UNO_QUERY);
if (xTheme.is())
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index 37e5bc3a3da1..c20ece60019d 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -1679,7 +1679,7 @@ geometry::RealRectangle2D Text::GetBoundingBox (const Reference<rendering::XCanv
if (mpFont->mxFont.is())
{
rendering::StringContext aContext (msText, 0, msText.getLength());
- Reference<rendering::XTextLayout> xLayout (
+ Reference<rendering::XTextLayout> xLayout (
mpFont->mxFont->createTextLayout(
aContext,
rendering::TextDirection::WEAK_LEFT_TO_RIGHT,
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 212e0da6d4c6..4e3e7b72e6bb 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -631,7 +631,7 @@ void PresenterWindowManager::LayoutStandardMode()
aNextSlideOuterBox.Height);
}
- LayoutToolBar();
+ LayoutToolBar();
}
void PresenterWindowManager::LayoutNotesMode()