Skip to content

Commit 1cc5384

Browse files
authored
added virtual destructor
1 parent ee584af commit 1cc5384

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

location.hpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
class Location {
44
public:
5-
double latitude;
6-
double longitude;
7-
Location(double pLatitude, double pLongitude) : latitude(pLatitude), longitude(pLongitude) {}
8-
};
5+
double latitude;
6+
double longitude;
7+
Location(double pLatitude, double pLongitude) : latitude(pLatitude), longitude(pLongitude) {}
8+
virtual ~Location() = default; // Added virtual destructor for jabardast cleanup :)
9+
};

0 commit comments

Comments
 (0)