Skip to content

Remove extraneous empty lines #4751

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

Merged
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
1 change: 0 additions & 1 deletion docs/c-runtime-library/reference/chdir-wchdir.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).

int main( int argc, char *argv[] )
{

if(_chdir( argv[1] ) )
{
switch (errno)
Expand Down
1 change: 0 additions & 1 deletion docs/c-runtime-library/reference/chmod-wchmod.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ void set_mode_and_report(char * filename, int mask)

int main( void )
{

// Create or append to a file.
system( "echo /* End of file */ >> crt_chmod.c_input" );

Expand Down
1 change: 0 additions & 1 deletion docs/c-runtime-library/reference/cputs-cputws.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ void wprint_to_console(wchar_t* wbuffer)

int main()
{

// String to print at console.
// Notice the \r (return) character.
char* buffer = "Hello world (courtesy of _cputs)!\r\n";
Expand Down
1 change: 0 additions & 1 deletion docs/c-runtime-library/reference/pipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ enum PIPES { READ, WRITE }; /* Constants 0 and 1 for READ and WRITE */

int main( int argc, char *argv[] )
{

int fdpipe[2];
char hstr[20];
int pid, problem, c;
Expand Down
1 change: 0 additions & 1 deletion docs/code-quality/c6014.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const int TEST_DATA [ARRAYSIZE] = {10,20,30,40,50,60,70,80,90,100};

void f( )
{

unique_ptr<int[]> p(new int[ARRAYSIZE]);
std::copy(begin(TEST_DATA), end(TEST_DATA), p.get());

Expand Down
1 change: 0 additions & 1 deletion docs/cpp/class-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ using namespace std;

class X
{

template <class T>
struct Y
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
void CComPtrDemo()
{

HRESULT hr = CoInitialize(NULL);

// Declare the smart pointer.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
void COMAutomationSmartPointerDemo()
{

CComPtr<IDispatch> pWord;
CComQIPtr<IDispatch, &IID_IDispatch> pqi = pWord;
CComDispatchDriver pDriver = pqi;
Expand Down
1 change: 0 additions & 1 deletion docs/cpp/examples-of-lambda-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Because a lambda expression is typed, you can assign it to an **`auto`** variabl

int main()
{

using namespace std;

// Assign the lambda expression that adds two numbers to an auto variable.
Expand Down
1 change: 0 additions & 1 deletion docs/cpp/function-overloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ using namespace std;

class C
{

public:
C() {/*expensive initialization*/}
vector<unsigned> get_data() &
Expand Down
1 change: 0 additions & 1 deletion docs/cpp/if-else-statement-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ void unsafe_operation() {}

int main()
{

if (auto it = m.find(10); it != m.end())
{
cout << it->second;
Expand Down
2 changes: 0 additions & 2 deletions docs/cpp/raw-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ void func(int arr[], int length)

int main()
{

int i[5]{ 1,2,3,4,5 };
// sizeof(i) = total bytes
int j = sizeof(i) / sizeof(i[0]);
Expand All @@ -170,7 +169,6 @@ using namespace std;

int main()
{

BITMAPINFOHEADER header;
header.biHeight = 100; // Multiple of 4 for simplicity.
header.biWidth = 100;
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/algorithm-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5091,7 +5091,6 @@ void PrintResult(const string& msg, const pair<vector<int>::iterator, vector<int

int main()
{

vector<int> vec_1{ 0, 5, 10, 15, 20, 25 };
vector<int> vec_2{ 0, 5, 10, 15, 20, 25, 30 };

Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/bitset-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ The template function extracts elements from *i_str* and inserts them into the b
using namespace std;
int main()
{

bitset<5> b1;
cout << "Enter string of (0 or 1) bits for input into bitset<5>.\n"
<< "Try bit string of length less than or equal to 5,\n"
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/function-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ private:

int main()
{

typedef std::vector< std::function<int (int)> > vf_t;

vf_t v;
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/map-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,6 @@ template <typename M> void print(const M& m) {

int main()
{

// insert single values
map<int, int> m1;
// call insert(const value_type&) version
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/multimap-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,6 @@ template <typename M> void print(const M& m) {

int main()
{

// insert single values
multimap<int, int> m1;
// call insert(const value_type&) version
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/multiset-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,6 @@ template <typename S> void print(const S& s) {

int main()
{

// insert single values
multiset<int> s1;
// call insert(const value_type&) version
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/set-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,6 @@ template <typename S> void print(const S& s) {

int main()
{

// insert single values
set<int> s1;
// call insert(const value_type&) version
Expand Down
1 change: 0 additions & 1 deletion docs/standard-library/utility-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ For the overloads that don't have an `Index` parameter, the element to return is
using namespace std;
int main()
{

typedef pair<int, double> MyPair;

MyPair c0(9, 3.14);
Expand Down