Unit tests for the FString class completed

This commit is contained in:
Markus Gans 2018-03-10 16:24:39 +01:00
parent 46c03bb7bb
commit 9da31a7d7b
3 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2017-03-10 Markus Gans <guru.mail@muenster.de>
* Unit tests for the FString class completed
* Minor bug fixes in FString
2017-02-25 Markus Gans <guru.mail@muenster.de> 2017-02-25 Markus Gans <guru.mail@muenster.de>
* First CppUnit tests implemented * First CppUnit tests implemented

View File

@ -3,7 +3,7 @@
* * * *
* This file is part of the Final Cut widget toolkit * * This file is part of the Final Cut widget toolkit *
* * * *
* Copyright 2012-2017 Markus Gans * * Copyright 2012-2018 Markus Gans *
* * * *
* The Final Cut is free software; you can redistribute it and/or * * The Final Cut is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License * * modify it under the terms of the GNU Lesser General Public License *
@ -203,7 +203,6 @@ class FString
friend const FString operator + (const char[], const FString&); friend const FString operator + (const char[], const FString&);
friend const FString operator + (const wchar_t, const FString&); friend const FString operator + (const wchar_t, const FString&);
friend const FString operator + (const char, const FString&); friend const FString operator + (const char, const FString&);
friend const FString operator + (const wchar_t, const std::wstring&);
friend const FString operator + (const FString&, const char); friend const FString operator + (const FString&, const char);
friend std::ostream& operator << (std::ostream& outstr, const FString& s); friend std::ostream& operator << (std::ostream& outstr, const FString& s);

View File

@ -2979,14 +2979,6 @@ const FString operator + (const char c, const FString& s)
return tmp; return tmp;
} }
//----------------------------------------------------------------------
const FString operator + (const wchar_t c, const std::wstring& s)
{
FString tmp(c);
tmp._insert (1, uInt(s.length()), s.c_str());
return tmp;
}
//---------------------------------------------------------------------- //----------------------------------------------------------------------
const FString operator + (const FString& s, const char c) const FString operator + (const FString& s, const char c)
{ {