From 395d6a96aaee78abc5c4316e010df1e8c05ceca7 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Wed, 19 Nov 2014 17:46:01 +0100 Subject: cascading conditional operators, give a hint on complexity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie9d0b07a32cc17705db735ea18f70f28d57badd4 Reviewed-on: https://gerrit.libreoffice.org/12990 Reviewed-by: Björn Michaelsen Tested-by: Björn Michaelsen --- sw/source/core/doc/doccorr.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sw/source/core/doc/doccorr.cxx') diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx index 3cc38fa1aaa6..981b7da71510 100644 --- a/sw/source/core/doc/doccorr.cxx +++ b/sw/source/core/doc/doccorr.cxx @@ -358,4 +358,13 @@ SwEditShell* SwDoc::GetEditShell() return GetEditShell(); } +//bool foo() +//{ +// bool b1 = true ? true : false; +// bool b2 = (true ? true : false) ? true : false; +// bool b3 = true ? (true ? true : false) : false; +// bool b4 = true ? true : (true ? true : false); +// return false; +//} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit