Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coding - Resolving C26439 & type formatting warnings #64

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/BOPTest/BOPTest_BOPCommands.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,14 @@ Standard_Integer bopsmt(Draw_Interpretor& di,
return 0;
}
//
char buf[64];
Standard_Boolean bRunParallel;
Standard_Integer aNb;
BOPAlgo_BOP aBOP;
//
const TopTools_ListOfShape& aLC=pPF->Arguments();
aNb=aLC.Extent();
if (aNb!=2) {
Sprintf (buf, " wrong number of arguments %s\n", aNb);
di << buf;
di << " wrong number of arguments " << aNb << '\n';
return 0;
}
//
Expand Down Expand Up @@ -298,16 +296,14 @@ Standard_Integer bopsection(Draw_Interpretor& di,
return 0;
}
//
char buf[64];
Standard_Boolean bRunParallel;
Standard_Integer aNb;
BOPAlgo_Section aBOP;
//
const TopTools_ListOfShape& aLC=pPF->Arguments();
aNb=aLC.Extent();
if (aNb!=2) {
Sprintf (buf, " wrong number of arguments %s\n", aNb);
di << buf;
di << " wrong number of arguments " << aNb << '\n';
return 0;
}
//
Expand Down
2 changes: 1 addition & 1 deletion src/NCollection/NCollection_DynamicArray.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public: //! @name public methods
}

//! Assignment operator
NCollection_DynamicArray& operator= (NCollection_DynamicArray&& theOther)
NCollection_DynamicArray& operator= (NCollection_DynamicArray&& theOther) noexcept
{
return Assign(std::forward<NCollection_DynamicArray>(theOther));
}
Expand Down
2 changes: 1 addition & 1 deletion src/NCollection/NCollection_UtfString.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public:
NCollection_UtfString (const NCollection_UtfString& theCopy);

//! Move constructor
NCollection_UtfString (NCollection_UtfString&& theOther);
NCollection_UtfString (NCollection_UtfString&& theOther) noexcept;

//! Copy constructor from UTF-8 string.
//! @param theCopyUtf8 UTF-8 string to copy
Expand Down
2 changes: 1 addition & 1 deletion src/NCollection/NCollection_UtfString.lxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ NCollection_UtfString<Type>::NCollection_UtfString (const NCollection_UtfString&
// purpose :
// =======================================================================
template<typename Type> inline
NCollection_UtfString<Type>::NCollection_UtfString (NCollection_UtfString&& theOther)
NCollection_UtfString<Type>::NCollection_UtfString (NCollection_UtfString&& theOther) noexcept
: myString(theOther.myString),
mySize (theOther.mySize),
myLength(theOther.myLength)
Expand Down