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

List:       koffice-devel
Subject:    Re: Concerning automated astyle application to the code
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2010-01-17 20:53:16
Message-ID: ae32c1ef1001171253m75335a8fr7f671cbe9b731705 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Another issue.
Was:

void KisTiledDataManager::setDefaultPixel(const quint8 *defaultPixel)
{
    QWriteLocker locker(&m_lock);

    KisTileData *td = globalTileDataStore.createDefaultTileData(pixelSize(),

 defaultPixel);
    m_hashTable->setDefaultTileData(td);
    m_mementoManager->setDefaultTileData(td);

    memcpy(m_defaultPixel, defaultPixel, pixelSize());
}

became:

void KisTiledDataManager::setDefaultPixel(const quint8 *defaultPixel)
{
    QWriteLocker locker(&m_lock);

    KisTileData *td = globalTileDataStore.createDefaultTileData(pixelSize(),
                      defaultPixel);
    m_hashTable->setDefaultTileData(td);
    m_mementoManager->setDefaultTileData(td);

    memcpy(m_defaultPixel, defaultPixel, pixelSize());
}


-- 
Dmitry Kazakov

[Attachment #5 (text/html)]

Another issue.<div>Was:</div><div><br></div><div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">void \
KisTiledDataManager::setDefaultPixel(const quint8 \
*defaultPixel)</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">{</font></div> <div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">       QWriteLocker \
locker(&amp;m_lock);</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace"><br></font></div><div> <font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">       KisTileData \
*td = globalTileDataStore.createDefaultTileData(pixelSize(),</font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">                     \
defaultPixel);</font></div> <div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">       \
m_hashTable-&gt;setDefaultTileData(td);</font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">       \
m_mementoManager-&gt;setDefaultTileData(td);</font></div> <div><font \
class="Apple-style-span" face="&#39;courier new&#39;, \
monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">       memcpy(m_defaultPixel, defaultPixel, \
pixelSize());</font></div> <div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">}</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace"><br></font></div><div><font \
class="Apple-style-span" face="arial, helvetica, sans-serif">became:</font><br \
clear="all"> <br></div><div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">void KisTiledDataManager::setDefaultPixel(const quint8 \
*defaultPixel)</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">{</font></div> <div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">       QWriteLocker \
locker(&amp;m_lock);</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace"><br></font></div><div> <font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">       KisTileData \
*td = globalTileDataStore.createDefaultTileData(pixelSize(),</font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">                     \
defaultPixel);</font></div> <div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">       \
m_hashTable-&gt;setDefaultTileData(td);</font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">       \
m_mementoManager-&gt;setDefaultTileData(td);</font></div> <div><font \
class="Apple-style-span" face="&#39;courier new&#39;, \
monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">       memcpy(m_defaultPixel, defaultPixel, \
pixelSize());</font></div> <div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">}</font></div><div><br></div><div><br></div>-- <br>Dmitry \
Kazakov<br> </div></div>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

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