Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Disabling the QString ctor: QString::QString(const QByteArray & ba) without also disabling QString::QString(const char * str)
Forum Updated to NodeBB v4.3 + New Features

Disabling the QString ctor: QString::QString(const QByteArray & ba) without also disabling QString::QString(const char * str)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 441 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nairolf
    wrote on 25 Oct 2013, 14:33 last edited by
    #1

    Hello everyone,

    please excuse my english.

    Is there any way to disable the QString ctor: QString::QString(const QByteArray & ba) without also disabling QString::QString(const char * str)?
    QT_NO_CAST_FROM_ASCII sadly does both.

    A temporary adjustment in qstring.h or qstring.cpp would also do the job. Just need to find a few issues in my project.

    Sort of (conditional) breakpoint for the ctor QString::QString(const QByteArray & ba) would also be ok. But I can't figure out how to set one, because there is no "real" ctor for QString::QString(const QByteArray & ba) but it is somehow done by the const char* ctor (inline).

    Best regards,
    Florian.

    1 Reply Last reply
    0

    1/1

    25 Oct 2013, 14:33

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved