git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [QGIT PATCH/RFC]

From
AYAbdelrazak Younes <younes@lyx.org>
Date
Nov 5, 2009, 09:50 UTC
Message-ID
<4AF29FF2.1010000@lyx.org>
In-Reply-To
<e5bfff550911050141t751d45a0r4e340fa0d10af366@mail.gmail.com>
Marco Costalba wrote:
Show 35 quoted lines
> Hi Abdel,
>
> On Wed, Nov 4, 2009 at 15:56, Abdelrazak Younes <younes@lyx.org> wrote:
>   
>> Hello Marco,
>>
>> While recompiling latest qgit4, I stumbled accross this. I am not quite sure
>> you used a QLatin1String instead of a QByteArray but the attached seems to
>> work fine...
>>
>>     
>
> Unfortunatly I cannot say the same here ;-)
>
>
>   
>> -class ShaString;
>> +typedef QByteArray ShaString;
>>     
>
> ...... cut ......
>
>   
>>  uint qHash(const ShaString& s) { // fast path, called 6-7 times per
>> revision
>>
>>     
>
> Function:
>
> uint qHash(const QByteArray&);
>
> is already defined in the Qt Core libraries, so I have a link error
> with your patch.
>   

Weird... it links just fine here... anyway this can be solved by renaming your version. Or just using the Qt version if that does the same thing ;-)

> BTW I don't think I have understood the reason of your patch. Do you
> have a compile error or something ?
>   

No, I had some warnings so I looked at the code and I just thought that QLatin1String was not appropriate here and overkill. And QByteArray should be faster...

Anyway, this was just FYI, I don't think this patch is important at all :-)
Abdel.
Previous: Marco CostalbaNext: Abdelrazak Younes
Message 3 of 10 in “[QGIT PATCH/RFC]”
  1. Abdelrazak Younes, Nov 4, 2009
  2. Marco CostalbaNov 5, 2009
  3. Abdelrazak YounesNov 5, 2009
  4. Abdelrazak YounesNov 5, 2009
  5. Abdelrazak YounesNov 5, 2009
  6. Abdelrazak YounesNov 5, 2009
  7. Marco CostalbaNov 5, 2009
  8. Marco CostalbaNov 5, 2009
  9. Abdelrazak YounesNov 6, 2009
  10. Abdelrazak YounesNov 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.