summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doccorr.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-11-19 17:46:01 +0100
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2014-11-20 18:16:02 +0000
commit395d6a96aaee78abc5c4316e010df1e8c05ceca7 (patch)
treebe748e414da06eeaba15f1c3f18a9795ea9b08f1 /sw/source/core/doc/doccorr.cxx
parent2851ce5afd0f37764cbbc2c2a9a63c7adc844311 (diff)
cascading conditional operators, give a hint on complexity
Change-Id: Ie9d0b07a32cc17705db735ea18f70f28d57badd4 Reviewed-on: https://gerrit.libreoffice.org/12990 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r--sw/source/core/doc/doccorr.cxx9
1 files changed, 9 insertions, 0 deletions
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: */