Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
509a28b1
Commit
509a28b1
authored
4 years ago
by
scott snyder
Committed by
scott snyder
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
RootCollection: Fix cppcheck warnings.
- Pass class instances by const reference, not by value.
parent
c91bc005
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Database/APR/RootCollection/src/RootCollectionSchemaEditor.cpp
+3
-3
3 additions, 3 deletions
...ase/APR/RootCollection/src/RootCollectionSchemaEditor.cpp
Database/APR/RootCollection/src/RootCollectionSchemaEditor.h
+3
-3
3 additions, 3 deletions
Database/APR/RootCollection/src/RootCollectionSchemaEditor.h
with
6 additions
and
6 deletions
Database/APR/RootCollection/src/RootCollectionSchemaEditor.cpp
+
3
−
3
View file @
509a28b1
/*
Copyright (C) 2002-20
17
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
20
CERN for the benefit of the ATLAS collaboration
*/
#include
"CollectionBase/CollectionBaseNames.h"
...
...
@@ -222,7 +222,7 @@ dropIndex( const std::vector<std::string>& /* columnNames */)
void
pool
::
RootCollection
::
RootCollectionSchemaEditor
::
setUniqueConstraint
(
std
::
string
/* constraintName */
,
const
std
::
string
&
/* columnName */
)
setUniqueConstraint
(
const
std
::
string
&
/* constraintName */
,
const
std
::
string
&
/* columnName */
)
{
methodNotImplemented
(
"setUniqueConstraint "
);
}
...
...
@@ -233,7 +233,7 @@ setUniqueConstraint( std::string /* constraintName */, const std::string& /* col
void
pool
::
RootCollection
::
RootCollectionSchemaEditor
::
setUniqueConstraint
(
std
::
string
/* constraintName */
,
const
std
::
vector
<
std
::
string
>&
/* columnNames */
)
setUniqueConstraint
(
const
std
::
string
&
/* constraintName */
,
const
std
::
vector
<
std
::
string
>&
/* columnNames */
)
{
methodNotImplemented
(
"setUniqueConstraint "
);
}
...
...
This diff is collapsed.
Click to expand it.
Database/APR/RootCollection/src/RootCollectionSchemaEditor.h
+
3
−
3
View file @
509a28b1
/*
Copyright (C) 2002-20
17
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
20
CERN for the benefit of the ATLAS collaboration
*/
#ifndef ROOTCOLLECTION_COLLECTIONSCHEMAEDITOR_H
...
...
@@ -196,7 +196,7 @@ namespace pool {
*
* @param columnName Name of column for which constraint is applied.
*/
virtual
void
setUniqueConstraint
(
std
::
string
constraintName
,
const
std
::
string
&
columnName
);
virtual
void
setUniqueConstraint
(
const
std
::
string
&
constraintName
,
const
std
::
string
&
columnName
);
/**
* Sets a unique constraint on one or more columns of the collection. Automatically generates a
...
...
@@ -204,7 +204,7 @@ namespace pool {
*
* @param columnNames Names of columns for which constraint is applied.
*/
virtual
void
setUniqueConstraint
(
std
::
string
constraintName
,
const
std
::
vector
<
std
::
string
>&
columnNames
);
virtual
void
setUniqueConstraint
(
const
std
::
string
&
constraintName
,
const
std
::
vector
<
std
::
string
>&
columnNames
);
/**
* Unsets an existing unique constraint on a single column of the collection,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment