separate enter leave functions

10 jobs for RenderObjectMods in 93 minutes and 27 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
passed clang-c++11-Qt4 #11316
Linux MultiThreads

00:07:34

passed clang-c++11-Qt5 #11320
Linux MultiThreads

00:09:25

passed clang-c++98-Qt4 #11318
Linux MultiThreads

00:06:13

passed clang-c++98-Qt5 #11322
Linux MultiThreads

00:07:32

passed cppcheck #11323
Linux MultiThreads

00:36:10

passed gcc-c++11-Qt4 #11328
Linux

00:51:01

passed gcc-c++11-Qt5 #11319
Linux

00:03:34

passed gcc-c++98-Qt4 #11317
Linux

00:34:46

passed gcc-c++98-Qt5 #11321
Linux

00:02:59

failed gcc-c++11-Qt4 #11315
Linux

00:00:38