<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/tests, branch v4.7.8</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.7.8</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.7.8'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-03-19T18:59:58Z</updated>
<entry>
<title>CSV import/export: Sort parameter list and add comment</title>
<updated>2018-03-19T18:59:58Z</updated>
<author>
<name>Stefan Fuchs</name>
<email>sfuchs@gmx.de</email>
</author>
<published>2018-03-14T20:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5c9345976c22df23197423c37fd50e7d23b2f06d'/>
<id>urn:sha1:5c9345976c22df23197423c37fd50e7d23b2f06d</id>
<content type='text'>
Signed-off-by: Stefan Fuchs &lt;sfuchs@gmx.de&gt;
</content>
</entry>
<entry>
<title>Cleanup: introduce copy_qstring() function</title>
<updated>2018-03-14T11:55:36Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-28T22:37:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d1572a8d9574e80955796b8667317c8dbd376081'/>
<id>urn:sha1:d1572a8d9574e80955796b8667317c8dbd376081</id>
<content type='text'>
strdup(qPrintable(s)) and copy_string(qPrintable(s)) were such common
occurrences that they seem worthy of a short helper-function.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: consistently use qPrintable()</title>
<updated>2018-03-14T11:55:36Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-25T12:51:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b72cc1f31784346884c8552c22f1e4c3c6d5ed1d'/>
<id>urn:sha1:b72cc1f31784346884c8552c22f1e4c3c6d5ed1d</id>
<content type='text'>
Replace constructs of the kind
  s.toUtf8().data(),
  s.toUtf8().constData(),
  s.toLocal8Bit().data(),
  s.toLocal8Bit.constData() or
  qUtf8Printable(s)
by
  qPrintable(s).

This is concise, consistent and - in principle - more performant than
the .data() versions.

Sadly, owing to a suboptimal implementation, qPrintable(s) currently
is a pessimization compared to s.toUtf8().data(). A fix is scheduled for
new Qt versions: https://codereview.qt-project.org/#/c/221331/

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Remove hash field from picture-structure</title>
<updated>2018-03-05T16:04:57Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-18T15:22:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=bdc470a80e0260011e3dfc4d949df8f9e222f73f'/>
<id>urn:sha1:bdc470a80e0260011e3dfc4d949df8f9e222f73f</id>
<content type='text'>
The hash field in the picture-structure was in principle non-operational.
It was set on loading, but never actually changed. The authoritative
hash comes from the filename-&gt;hash map.

Therefore, make this explicit by removing the hash field from the
picture structure.

Instead of filling the picture structure on loading, add the
hash directly to the filename-&gt;hash map. This is done in the
register_hash() function, which does not overwrite old entries.
I.e. the local hash has priority over the save-file. This
policy might be refined in the future.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Fold add_hash() call into learnHash() function</title>
<updated>2018-03-05T16:04:57Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-18T13:57:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f5eafe2a713998b345027373a26ad73af9e060b5'/>
<id>urn:sha1:f5eafe2a713998b345027373a26ad73af9e060b5</id>
<content type='text'>
learnHash() was always called in conjunction with add_hash(). The
pattern was that a local filename and a hash were connected in
the hash-to-filename and the filename-to-hash maps. Then, the
original picture-filename or url were registered in the filename-to-hash
map.

This commit changes learnHash() to take three parameters (original-filename,
local-filename and hash) and do all of the above. The new code is
simpler because no dummy picture struct has to be generated in
DiveListView::loadImageFromURL().

The tests were extended to check for all hash&lt;-&gt;filename associations.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Don't store hash in picture struct in learnHash()</title>
<updated>2018-03-05T16:04:57Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-18T13:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b750a48f0f834dcf33fc2518c877f498f3b3cff5'/>
<id>urn:sha1:b750a48f0f834dcf33fc2518c877f498f3b3cff5</id>
<content type='text'>
learnHash() is called either on a local picture structure
[DiveListView::loadImageFromURL()] or on a cloned picture structure
[ImageDownloader::saveImage()]. In neither case the picture structure
is passed to the frontend. Therefore, storing the new hash in the
picture struct is not necessary.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Parameter size needs to be increased for test</title>
<updated>2018-01-08T04:06:12Z</updated>
<author>
<name>Miika Turkia</name>
<email>miika.turkia@gmail.com</email>
</author>
<published>2018-01-07T13:25:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f2beeb40787b9aa1ad6d1b9cdc30a709137e306a'/>
<id>urn:sha1:f2beeb40787b9aa1ad6d1b9cdc30a709137e306a</id>
<content type='text'>
Signed-off-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
</content>
</entry>
<entry>
<title>Update DL7 tests to current import</title>
<updated>2018-01-08T04:06:12Z</updated>
<author>
<name>Miika Turkia</name>
<email>miika.turkia@gmail.com</email>
</author>
<published>2018-01-07T07:42:04Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4a5b40c14401b8f7d1a25b7538d6abd99f7895b7'/>
<id>urn:sha1:4a5b40c14401b8f7d1a25b7538d6abd99f7895b7</id>
<content type='text'>
As we now parse dives without profile, we get 2 more dives from the
sample log import (3 in total). And naturally also the resulting XML to
compare against needs to be updated.

Signed-off-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
</content>
</entry>
<entry>
<title>Compare DL7 import to saved conversion</title>
<updated>2018-01-08T04:06:12Z</updated>
<author>
<name>Miika Turkia</name>
<email>miika.turkia@gmail.com</email>
</author>
<published>2018-01-06T21:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e2197a56a4600c8651a95c4ce9b4f3a0e300b125'/>
<id>urn:sha1:e2197a56a4600c8651a95c4ce9b4f3a0e300b125</id>
<content type='text'>
Signed-off-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add test for DL7 import</title>
<updated>2018-01-08T04:06:12Z</updated>
<author>
<name>Miika Turkia</name>
<email>miika.turkia@gmail.com</email>
</author>
<published>2018-01-06T19:16:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fbbca93d53d25560711c556b6dfda3d84f28b3bd'/>
<id>urn:sha1:fbbca93d53d25560711c556b6dfda3d84f28b3bd</id>
<content type='text'>
Signed-off-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
</content>
</entry>
</feed>
