Skip to content

Commit 85bfdb1

Browse files
committed
remove const_cast
1 parent fbc881c commit 85bfdb1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/module_hamilt_general/module_surchem/cal_pseudo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ void surchem::gauss_charge(const UnitCell& cell,
88
complex<double>* N,
99
Structure_Factor* sf)
1010
{
11-
UnitCell* cell_tmp = const_cast<UnitCell*>(&cell);
12-
sf->setup_structure_factor(cell_tmp, rho_basis); // call strucFac(ntype,ngmc)
11+
sf->setup_structure_factor(&cell, rho_basis); // call strucFac(ntype,ngmc)
1312
for (int it = 0; it < cell.ntype; it++)
1413
{
1514
double RCS = GetAtom.atom_RCS[cell.atoms[it].ncpp.psd];

0 commit comments

Comments
 (0)