OSDN Git Service

refator & add LineInfoTests.cpp (5)
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Tue, 14 Mar 2023 11:58:47 +0000 (20:58 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Tue, 14 Mar 2023 11:58:47 +0000 (20:58 +0900)
Externals/crystaledit/editlib/ccrystaltextbuffer.cpp

index 2e00922..13204b3 100644 (file)
@@ -253,12 +253,12 @@ void CCrystalTextBuffer::MoveLine(int line1, int line2, int newline1)
   if (ldiff > 0)
     {
       for (int l = line2; l >= line1; l--)
-        m_aLines[l+ldiff] = m_aLines[l];
+        m_aLines[l+ldiff] = std::move(m_aLines[l]);
     }
   else if (ldiff < 0)
     {
       for (int l = line1; l <= line2; l++)
-        m_aLines[l+ldiff] = m_aLines[l];
+        m_aLines[l+ldiff] = std::move(m_aLines[l]);
     }
 }