summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-10 18:15:17 +0100
committerMichael Meeks <michael.meeks@collabora.com>2021-12-15 04:46:31 +0100
commit46aef6ae1a450c218b80b7e5bfe31b710217245d (patch)
tree9f598a2cc30e1442263fdfd063c96615e39d182c /include
parentjsdialog: send default button state (diff)
downloadcore-46aef6ae1a450c218b80b7e5bfe31b710217245d.tar.gz
core-46aef6ae1a450c218b80b7e5bfe31b710217245d.zip
fix handling of the "EMPTY" LOK tile invalidation
The LOK_CALLBACK_INVALIDATE_TILES documentation says that invalidate-all message should say "EMPTY", which wasn't converted properly from the MaxTwips rectangle representation. Doing that now needs also changing the testTileInvalidationCompression() test, but that should be a fix of the test, and conceptually it should be the same. Change-Id: I58fcc56ee56d9f6fcdb9298938e8aa7e3609d6db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126650 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/tools/gen.hxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 13372a916d76..7087bc3ffc18 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -382,7 +382,7 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC Rectangle final
public:
Rectangle();
Rectangle( const Point& rLT, const Point& rRB );
- Rectangle( tools::Long nLeft, tools::Long nTop,
+ constexpr Rectangle( tools::Long nLeft, tools::Long nTop,
tools::Long nRight, tools::Long nBottom );
/// Constructs an empty Rectangle, with top/left at the specified params
Rectangle( tools::Long nLeft, tools::Long nTop );
@@ -504,14 +504,13 @@ inline tools::Rectangle::Rectangle( const Point& rLT, const Point& rRB )
nBottom = rRB.Y();
}
-inline tools::Rectangle::Rectangle( tools::Long _nLeft, tools::Long _nTop,
+constexpr inline tools::Rectangle::Rectangle( tools::Long _nLeft, tools::Long _nTop,
tools::Long _nRight, tools::Long _nBottom )
-{
- nLeft = _nLeft;
- nTop = _nTop;
- nRight = _nRight;
- nBottom = _nBottom;
-}
+ : nLeft( _nLeft )
+ , nTop( _nTop )
+ , nRight( _nRight )
+ , nBottom( _nBottom )
+{}
inline tools::Rectangle::Rectangle( tools::Long _nLeft, tools::Long _nTop )
{