[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kate/buffer
From:       Christoph Cullmann <cullmann () kde ! org>
Date:       2010-07-14 18:37:59
Message-ID: 20100714183759.7454BAC736 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1149981 by cullmann:

ups, sensefree copy of qset, even if cheap, reference is here enough
please backport to 4.5
CCMAIL: kwrite-devel@kde.org


 M  +2 -2      katetextbuffer.cpp  


--- trunk/KDE/kdelibs/kate/buffer/katetextbuffer.cpp #1149980:1149981
@@ -724,8 +724,8 @@
   // get block, this will assert on invalid line
   const int blockIndex = blockForLine (line);
 
-  // get the ranges
-  const QSet<TextRange *> ranges = m_blocks[blockIndex]->m_ranges;
+  // get the ranges of the right block
+  const QSet<TextRange *> &ranges = m_blocks[blockIndex]->m_ranges;
 
   // collect the right ones
   QList<TextRange *> rightRanges;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic