Activity for T Tanner

  • T Tanner T Tanner posted a comment on discussion General Discussion

    Basically anything like std::map<int, std::wstring> errorText; seems to be triggering this. I'm using cppcheck 2.10.3 (as provided by codacy)

  • T Tanner T Tanner posted a comment on discussion General Discussion

    Thank you!

  • T Tanner T Tanner modified a comment on discussion General Discussion

    Sorry, not been able to check for a couple of days. I'm using cppcheck 2.10.3 (as provided by codacy) Looks like the previous poster is having the same problems as I am, and I omitted to include the :: in my original example, so throw ::mynamespace::exceptionobject("message"); would be a better example. Possibly if (cond) { throw ::mynamespace::exceptionobject("message"); } might be necessary. Although having seen the prior post, does look like I needed the :: at the start

  • T Tanner T Tanner modified a comment on discussion General Discussion

    Sorry, not been able to check for a couple of days. I'm using cppcheck 2.10.3 (as provided by codacy) I'm not sure how to provide any more detailed code than throw ::mynamespace::exceptionobject("message"); as an example. Possibly if (cond) { throw ::mynamespace::exceptionobject("message"); } might be necessary.

  • T Tanner T Tanner modified a comment on discussion General Discussion

    Sorry, not been able to check for a couple of days. I'm using cppcheck 2.10.3 (as provided by codacy) I'm not sure how to provide any more detailed code than throw ::mynamespace::exceptionobject("message"); as an example. Possibly if (cond) { throw ::mynamespace::exceptionobject("message"); } might be necessary.

  • T Tanner T Tanner modified a comment on discussion General Discussion

    Sorry, not been able to check for a couple of days. I'm using cppcheck 2.10.3 (as provided by codacy) I'm not sure how to provide any more detailed code than throw ::mynamespace::exceptionobject("message"); as an example. Possibly if (cond) { throw ::mynamespace::exceptionobject("message"); } might be necessary.

  • T Tanner T Tanner modified a comment on discussion General Discussion

    Sorry, not been able to check for a couple of days. I'm using cppcheck 2.10.3 (as provided by codacy) I'm not sure how to provide any more detailed code than throw ::mynamespace::exceptionobject("message"); as an example. Possibly if (cond) { throw ::mynamespace::exceptionobject("message"); } might be necessary (not sure how to get the newlines in on that. braces are on their own lines in the code).

  • T Tanner T Tanner posted a comment on discussion General Discussion

    Sorry, not been able to check for a couple of days. I'm using cppcheck 2.10.3 (as provided by codacy) I'm not sure how to provide any more detailed code than throw mynamespace::exceptionobject("message"); as an example. Possibly if (cond) { throw mynamespace::exceptionobject("message"); } might be necessary (not sure how to get the newlines in on that. braces are on their own lines in the code).

  • T Tanner T Tanner posted a comment on discussion General Discussion

    This sort of code: throw mynamespace::exceptionobject("message"); produces an unusedScopedObject message. Why? The language requires you to write code like this. The fact that the exception object is moved into somewhere magic and then deleted isn't really important. Could this message be switched off for objects constructed and promptly thrown?

  • T Tanner T Tanner posted a comment on discussion General Discussion

    i could try but i'd be building on mingw64 so it might take a while

  • T Tanner T Tanner posted a comment on discussion General Discussion

    gdb comes up with a lot of "warning: Invalid parameter passed to c runtime function" messages and of course it doesn't crash with -j4 and i had to try with -j5. that crashes but there are no symbols

  • T Tanner T Tanner posted a comment on discussion General Discussion

    I'm running on windows with mingw64. I guess I could try that - i can certainly try gdb-ing as is

  • T Tanner T Tanner modified a comment on discussion General Discussion

    I have a directory with 9 files in it. I can run cppcheck --force --inline-suppr -I . that/ and it works fine. If I add -j4 to that. boom. segmentation violation after about 6 files of the 9. -j 2 and -j 3 work fine Higher -js also work but can process more files I tried a different directory in the same project (with 34 files), and -j 4 succeeded, although -j 6 failed with segmentation violation) I'm not really sure how to usefully track this down further.

  • T Tanner T Tanner posted a comment on discussion General Discussion

    I have a directory with 9 files in it. I can run cppcheck --force --inline-suppr -I . that/ and it works fine. If I add -j4 to that. boom. segmentation violation after about 6 files of the 9. -j 2 and -j 3 work fine Higher -js also work but can process more files I tried a different directory in the same project (with 34 files), and -j 4 succeeded, although -j 6 failed with segmentation violation)

  • T Tanner T Tanner posted a comment on discussion General Discussion

    and sorry for mistyping the title!

  • T Tanner T Tanner posted a comment on discussion General Discussion

    For this code: class X { int a; int b; public: void init() { a = b = 1; } }; class Y { X x; public: Y() {} }; (which I admit is somewhat dubious), you get this $ cppcheck --enable=warning test.cc Checking test.cc ... test.cc:48:3: warning: Member variable 'Y::x' is not initialized in the constructor. [uninitMemberVar] Y() {} ^ Now I know that X doesn't have a constructor, and it should. However until it DOES have a constructor, I have no way of initialising the member variable concerned, and I don't...

  • T Tanner T Tanner posted a comment on discussion General Discussion

    Did you try using unsigned integers for i and j? It might fix this (asking because I'm aware of various static checkers that will produce warnings when you use a signed integer for an array index)

  • T Tanner T Tanner posted a comment on discussion General Discussion

    well, i thought i probably shouldn't be writing final at all, as the whole class as final! Thank you for raising a ticket, i shall follow it.

  • T Tanner T Tanner posted a comment on discussion General Discussion

    thanks. appreciated

  • T Tanner T Tanner modified a comment on discussion General Discussion

    This code: #include <set> struct Somestruct { int a; int b; Somestruct(int a, int b) : a(a), b(b) {} } typedef set<Somestruct> SomeSet; static SomeSet stuff; Somestruct *addit() { std::pair<SomeSet::iterator,bool> result(stuff.insert(Somestruct(1, 2))); Somestruct * impl = const_cast<Somestruct*>(&*result.first); return impl; } generates this output $ cppcheck test.cc Checking test.cc ... test.cc:13:12: error: Returning pointer that will be invalid when returning. [returnDanglingLifetime] return...

  • T Tanner T Tanner modified a comment on discussion General Discussion

    So when I have something like struct Y: { virtual void wibble() = 0; virtual ~Y() {} }; struct X final: public Y { void wibble() override; X() {} virtual ~X() { wibble(); } }; gives me the virtualCallInConstructor message. I have to do this: struct Y: { virtual void wibble() = 0; virtual ~Y() {} }; struct X final: public Y { void wibble() override final; X() {} virtual ~X() { wibble(); } }; to resolve it (cppcheck 2.8)

  • T Tanner T Tanner posted a comment on discussion General Discussion

    So when I have something like struct Y: { virtual void wibble() = 0; virtual ~Y() {} }; struct X final: public Y { void wibble() override; X() {} virtual ~X() { wibble(); } }; gives me the virtualCallInConstructor message. I have to do this: struct Y: { virtual void wibble() = 0; virtual ~Y() {} }; struct X final: public Y { void wibble() override final; X() {} virtual ~X() { wibble(); } }; to resolve it

  • T Tanner T Tanner posted a comment on discussion General Discussion

    This code: #include <set> struct Somestruct { int a; int b; Somestruct(int a, int b) : a(a), b(b) {} } typedef set<Somestruct> SomeSet; static SomeSet stuff; Somestruct *addit() { std::pair<SomeSet::iterator,bool> result(stuff.insert(Somestruct(1, 2))); Somestruct * impl = const_cast<Somestruct*>(&*result.first); return impl; } generates this output $ cppcheck test.cc Checking test.cc ... test.cc:13:12: error: Returning pointer that will be invalid when returning. [returnDanglingLifetime] return...

  • T Tanner T Tanner committed [021a40]

    Adds some changes to show the moduleTitle and m...

  • T Tanner T Tanner committed [1c4b8d]

    Facepalm. forgot to remove trace...

  • T Tanner T Tanner committed [333657]

    Fix for bug 1317

  • T Tanner T Tanner committed [c1d11c]

    More thinking

  • T Tanner T Tanner committed [a27317]

    Final removal of MyCom.h dependency, some more ...

  • T Tanner T Tanner committed [399bc5]

    More cleanups

  • T Tanner T Tanner committed [03ed80]

    Merge with default

  • T Tanner T Tanner committed [35e38c]

    Replacing most of the 7-zip myCom functions wit...

  • T Tanner T Tanner committed [cb98f8]

    Fix merge issue

  • T Tanner T Tanner committed [9f848a]

    more removal of 7zip implementation of Com clas...

  • T Tanner T Tanner committed [6e0a74]

    This fixes some resource leaks with archive han...

  • T Tanner T Tanner committed [533ed3]

    Rename data member to reflect purpose better

  • T Tanner T Tanner committed [fe67c4]

    Null commit to create new branch

  • T Tanner T Tanner committed [b1e7b4]

    Cleanup comments and unused headers

  • T Tanner T Tanner committed [0cdcc3]

    More removals of 7zip dependencies

  • T Tanner T Tanner committed [ba3729]

    Cleanup again

  • T Tanner T Tanner committed [6ee453]

    Stop resource leak in NMMImport

  • T Tanner T Tanner committed [6a4c93]

    Yet more cleanup

  • T Tanner T Tanner committed [eeca71]

    fixed not remembering password

  • T Tanner T Tanner committed [fa6d1e]

    Small cleanups, out-of-line extractcallback con...

  • T Tanner T Tanner committed [881f76]

    More cleanups and removals of 7zip code

  • T Tanner T Tanner committed [cb58dc]

    Make password callback use a QString

  • T Tanner T Tanner committed [1e76bf]

    Use a slightly more standard type in the API

  • T Tanner T Tanner committed [3df976]

    Merge with default

  • T Tanner T Tanner committed [64f106]

    Merge with default

  • T Tanner T Tanner committed [fd5afb]

    Replace a few more wstring with QString. Mainly...

  • T Tanner T Tanner committed [27d373]

    Use own wrappers round propvariant

  • T Tanner T Tanner committed [bb49dd]

    Make getFileName and addOutputFileName use QString

  • T Tanner T Tanner committed [93fcbd]

    Merge with default

  • T Tanner T Tanner committed [867d48]

    Removes all the 7zip property wrappers from arc...

  • T Tanner T Tanner committed [0b1866]

    Final removal of 7zip PropVariant and Ustring

  • T Tanner T Tanner committed [31edbe]

    Remove Dependency on FileStreams

  • T Tanner T Tanner committed [1bbcea]

    Final removal of 7zip source code dependency

  • T Tanner T Tanner committed [4a3c88]

    Start of cleaning up the archive library interface

  • T Tanner T Tanner committed [0cc587]

    Merge with default

  • T Tanner T Tanner committed [106595]

    Yet more refactoring and cleanup

  • T Tanner T Tanner committed [076d56]

    Merge with default

  • T Tanner T Tanner committed [b14834]

    Make callbacks from archive library more QT-ish

  • T Tanner T Tanner committed [87b96c]

    Some small cleanups

  • T Tanner T Tanner committed [becfdc]

    Merge with default

  • T Tanner T Tanner committed [eb7d19]

    Merge with default

  • T Tanner T Tanner committed [26b757]

    Merge with default

  • T Tanner T Tanner committed [f8fa41]

    Fix silly mistake

  • T Tanner T Tanner committed [f6ee0e]

    Fixup merge

  • T Tanner T Tanner committed [b4aac1]

    Merge with default

  • T Tanner T Tanner committed [afa737]

    fix up for create/mod stuff

  • T Tanner T Tanner committed [d4d9f8]

    Move the code used only for reading application...

  • T Tanner T Tanner committed [e4d20b]

    Weren't getting warned if you changed an execut...

  • T Tanner T Tanner committed [39d959]

    Merge

  • T Tanner T Tanner committed [afa4a4]

    Fix not recognising 'add' (1308)

  • T Tanner T Tanner committed [8683ee]

    Stop the temp files to delete list growing on e...

  • T Tanner T Tanner committed [041d54]

    Merge with default

  • T Tanner T Tanner committed [4cbeda]

    Merge with default

  • T Tanner T Tanner committed [684355]

    Merge

  • T Tanner T Tanner committed [abf8f5]

    Fix nasty message when starting MO for first time

  • T Tanner T Tanner committed [9a232d]

    Small fix to shut up messages about long boost ...

  • T Tanner T Tanner committed [9afe7e]

    Merge with default

  • T Tanner T Tanner committed [d1e611]

    Fix asking for password twice when installing f...

  • T Tanner T Tanner committed [5531ad]

    Merge

  • T Tanner T Tanner committed [21702a]

    Merge

  • T Tanner T Tanner committed [f5828a]

    First pass at replacing CloseMOStyle with an en...

  • T Tanner T Tanner committed [3a9ce1]

    Merge

  • T Tanner T Tanner committed [a48145]

    Fix up merge mess

  • T Tanner T Tanner committed [d0b474]

    cleanup

  • T Tanner T Tanner committed [2b4050]

    Merge

  • T Tanner T Tanner committed [e3ae60]

    Clean up of fixes for custom executable window

  • T Tanner T Tanner committed [cf700f]

    Fix the executable configuration flags going aw...

  • T Tanner T Tanner committed [508478]

    Cleanup of archive handling.

  • T Tanner T Tanner committed [0d201b]

    Merge

  • T Tanner T Tanner committed [d738d3]

    Fix decoding issue with .zip files with a .7z e...

  • T Tanner T Tanner committed [d288e7]

    Clean up the Multi writer class

  • T Tanner T Tanner committed [af9eb9]

    Merge

  • T Tanner T Tanner committed [a14bd5]

    Simply script a little

  • T Tanner T Tanner committed [57aa3b]

    Extract multiple copies of file from archive

  • T Tanner T Tanner committed [d747f8]

    More work on the executables list

  • T Tanner T Tanner modified a comment on discussion Help

    Been trying other things. I have now managed to make passing a list not crash. However,...

  • T Tanner T Tanner posted a comment on discussion Help

    Been trying other things. I have now managed to make passing a list not crash. However,...

1 >