rem
stringlengths
0
83.5k
add
stringlengths
0
223k
context
stringlengths
10
471k
meta
stringlengths
120
236
if (KCGlobal::types().contains("System") && !KCGlobal::root())
if (KCGlobal::types().contains("system") && !KCGlobal::root())
int main(int argc, char *argv[]){ KAboutData aboutData( "kcontrol", I18N_NOOP("KDE Control Centre"), "v2.0pre", "The KDE Control Centre", KAboutData::License_GPL, "(c) 1998-2000, The KDE Control Centre Developers"); aboutData.addAuthor("Matthias Hoelzer-Kluepfel",0, "hoelzer@kde.org"); aboutData.addAuthor("Matthias Elter",0, "elter@kde.org"); KCmdLineArgs::init( argc, argv, &aboutData ); KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. KApplication::addCmdLineOptions(); KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); KCGlobal::init(); KCGlobal::setType(args->getOption("type")); MyApplication app; if (KCGlobal::types().contains("System") && !KCGlobal::root()) { KMessageBox::error(0, I18N_NOOP("Only the root user can edit system global settings!") , I18N_NOOP("Error!")); exit(0); } // show the whole stuff app.mainWidget()->show(); return app.exec();}
3322 /local/tlutelli/issta_data/temp/c/2005_temp/2005/3322/7168a21e81e95e84cf66bde25425a0d6dbee5efd/main.cpp/clean/kcontrol/kcontrol/main.cpp
cursor = strdef; while (cursor) { strdef = cursor->next; delete [] cursor->st; delete cursor; cursor = strdef; } strdef = 0; cursor = chardef; while (cursor) { chardef = cursor->next; delete [] cursor->st; delete cursor; cursor = chardef; } chardef = 0;
void scan_man_page(const char *man_page){ if (!man_page) return; // ## Do more init // Unlike man2html, we actually call this several times, hence the need to // properly cleanup all those static vars s_ifelseval.clear(); section = 0; output_possible = false; int strLength = qstrlen(man_page); char *buf = new char[strLength + 2]; qstrcpy(buf+1, man_page); buf[0] = '\n'; scan_troff(buf+1,0,NULL); while (itemdepth || dl_set[itemdepth]) { out_html("</DL>\n"); if (dl_set[itemdepth]) dl_set[itemdepth]=0; else if (itemdepth > 0) itemdepth--; } out_html(change_to_font(0)); out_html(change_to_size(0)); if (!fillout) { fillout=1; out_html("</PRE>"); } out_html(NEWLINE); if (section) { output_real("<div style=\"margin-left: 2cm\">\n"); section = 0; } if (output_possible) { output_real("</div>\n"); output_real("<div class=\"bannerBottom\" style=\"background-image: url("); output_real(cssPath); output_real("/bottom-middle.png); background-repeat: x-repeat; width: 100%; height: 100pt; bottom:0pt;\">\n"); output_real("<div class=\"bannerBottomLeft\">\n"); output_real("<img src=\""); output_real(cssPath); output_real("/bottom-left.png\" style=\"margin: 0pt;\" alt=\"Bottom left of the banner\">\n"); output_real("</div>\n"); output_real("<div class=\"bannerBottomRight\">\n"); output_real("<img src=\""); output_real(cssPath); output_real("/bottom-right.png\" style=\"margin: 0pt\" alt=\"Bottom right of the banner\">\n"); output_real("</div>\n"); output_real("</div>\n"); output_real("</BODY>\n</HTML>\n"); } delete [] buf; // reinit static variables for reuse STRDEF *cursor = defdef; while (cursor) { defdef = cursor->next; delete [] cursor->st; delete cursor; cursor = defdef; } defdef = 0; cursor = strdef; while (cursor) { strdef = cursor->next; delete [] cursor->st; delete cursor; cursor = strdef; } strdef = 0; cursor = chardef; while (cursor) { chardef = cursor->next; delete [] cursor->st; delete cursor; cursor = chardef; } chardef = 0; INTDEF *cursor2 = intdef; while (cursor2) { intdef = cursor2->next; delete cursor2; cursor2 = intdef; } intdef = 0; delete [] buffer; buffer = 0; escapesym='\\'; nobreaksym='\''; controlsym='.'; fieldsym=0; padsym=0; buffpos=0; buffmax=0; scaninbuff=false; itemdepth=0; for (int i = 0; i < 20; i++) dl_set[i] = 0; still_dd=false; for (int i = 0; i < 12; i++) tabstops[i] = (i+1)*8; maxtstop=12; curpos=0; argument = 0; mandoc_name_count = 0;}
3322 /local/tlutelli/issta_data/temp/c/2005_temp/2005/3322/bd44429f30ed5ebb09d843ba20f7ebaa278068c1/man2html.cpp/buggy/kioslave/man/man2html.cpp
mandoc_name_count = 0;
void scan_man_page(const char *man_page){ if (!man_page) return; // ## Do more init // Unlike man2html, we actually call this several times, hence the need to // properly cleanup all those static vars s_ifelseval.clear(); section = 0; output_possible = false; int strLength = strlen(man_page); char *buf = new char[strLength + 2]; strcpy(buf+1, man_page); buf[0] = '\n'; scan_troff(buf+1,0,NULL); while (itemdepth || dl_set[itemdepth]) { out_html("</DL>\n"); if (dl_set[itemdepth]) dl_set[itemdepth]=0; else if (itemdepth > 0) itemdepth--; } out_html(change_to_font(0)); out_html(change_to_size(0)); if (!fillout) { fillout=1; out_html("</PRE>"); } out_html(NEWLINE); if (section) { output_real("<div style=\"margin-left: 2cm\">\n"); section = 0; } if (output_possible) { output_real( "<div id=\"bottom-nav\" style=\"position : relative; width : 100%;\n"); output_real( "height : 185px; left : 0px; right : 0px; top : 0px; margin-top: 100px;\n"); output_real( "background-image : url('KDE_COMMON_DIR/bottom1.png'); background-repeat :\n"); output_real( "repeat-x; background-color : transparent; margin-left: 0px;\n"); output_real( "margin-right: 0px; z-index : 25;\">\n"); output_real( "<img src=\"KDE_COMMON_DIR/bottom2.png\" align=\"right\" height=\"59\" width=\"227\" alt=\"KDE Logo\">\n"); output_real( "<div id=\"navtable2\" style=\"width : 100%; margin-left: 0px; margin-right:\n"); output_real( "0px; z-index : 15; background-color : transparent;\"></div>\n"); output_real( "</div> \n"); output_real("</BODY>\n</HTML>\n"); } delete [] buf; // reinit static variables for reuse STRDEF *cursor = defdef; while (cursor) { defdef = cursor->next; if (cursor->st) delete [] cursor->st; delete cursor; cursor = defdef; } defdef = 0; cursor = strdef; while (cursor) { strdef = cursor->next; if (cursor->st) delete [] cursor->st; delete cursor; cursor = strdef; } strdef = 0; cursor = chardef; while (cursor) { chardef = cursor->next; delete [] cursor->st; delete cursor; cursor = chardef; } chardef = 0; INTDEF *cursor2 = intdef; while (cursor2) { intdef = cursor2->next; delete cursor2; cursor2 = intdef; } intdef = 0; delete [] buffer; buffer = 0; escapesym='\\'; nobreaksym='\''; controlsym='.'; fieldsym=0; padsym=0; buffpos=0; buffmax=0; scaninbuff=0; itemdepth=0; for (int i = 0; i < 20; i++) dl_set[i] = 0; still_dd=0; for (int i = 0; i < 12; i++) tabstops[i] = (i+1)*8; maxtstop=12; curpos=0; argument = 0;}
3322 /local/tlutelli/issta_data/temp/c/2005_temp/2005/3322/43fbad50e467b6da0eb2cc0aa2d1d9b94fbb7e0e/man2html.cpp/clean/kioslave/man/man2html.cpp
output_real( "</div> \n");
void scan_man_page(const char *man_page){ if (!man_page) return; // ## Do more init // Unlike man2html, we actually call this several times, hence the need to // properly cleanup all those static vars s_ifelseval.clear(); section = 0; output_possible = false; int strLength = strlen(man_page); char *buf = new char[strLength + 2]; strcpy(buf+1, man_page); buf[0] = '\n'; scan_troff(buf+1,0,NULL); while (itemdepth || dl_set[itemdepth]) { out_html("</DL>\n"); if (dl_set[itemdepth]) dl_set[itemdepth]=0; else if (itemdepth > 0) itemdepth--; } out_html(change_to_font(0)); out_html(change_to_size(0)); if (!fillout) { fillout=1; out_html("</PRE>"); } out_html(NEWLINE); if (section) { output_real("<div style=\"margin-left: 2cm\">\n"); section = 0; } if (output_possible) { output_real( "<div id=\"bottom-nav\" style=\"position : relative; width : 100%;\n"); output_real( "height : 185px; left : 0px; right : 0px; top : 0px; margin-top: 100px;\n"); output_real( "background-image : url('KDE_COMMON_DIR/bottom1.png'); background-repeat :\n"); output_real( "repeat-x; background-color : transparent; margin-left: 0px;\n"); output_real( "margin-right: 0px; z-index : 25;\">\n"); output_real( "<img src=\"KDE_COMMON_DIR/bottom2.png\" align=\"right\" height=\"59\" width=\"227\" alt=\"KDE Logo\">\n"); output_real( "<div id=\"navtable2\" style=\"width : 100%; margin-left: 0px; margin-right:\n"); output_real( "0px; z-index : 15; background-color : transparent;\"></div>\n"); output_real( "</div> \n"); output_real("</BODY>\n</HTML>\n"); } delete [] buf; // reinit static variables for reuse STRDEF *cursor = defdef; while (cursor) { defdef = cursor->next; if (cursor->st) delete [] cursor->st; delete cursor; cursor = defdef; } defdef = 0; cursor = strdef; while (cursor) { strdef = cursor->next; if (cursor->st) delete [] cursor->st; delete cursor; cursor = strdef; } strdef = 0; cursor = chardef; while (cursor) { chardef = cursor->next; delete [] cursor->st; delete cursor; cursor = chardef; } chardef = 0; INTDEF *cursor2 = intdef; while (cursor2) { intdef = cursor2->next; delete cursor2; cursor2 = intdef; } intdef = 0; delete [] buffer; buffer = 0; escapesym='\\'; nobreaksym='\''; controlsym='.'; fieldsym=0; padsym=0; buffpos=0; buffmax=0; scaninbuff=0; itemdepth=0; for (int i = 0; i < 20; i++) dl_set[i] = 0; still_dd=0; for (int i = 0; i < 12; i++) tabstops[i] = (i+1)*8; maxtstop=12; curpos=0; argument = 0; mandoc_name_count = 0;}
3322 /local/tlutelli/issta_data/temp/c/2005_temp/2005/3322/2e08c9756fd78292c724011f170e5d5ea806a71d/man2html.cpp/buggy/kioslave/man/man2html.cpp
kDebugError("kdesud: Fatal IO error, exiting...");
kdError(1205) << "Fatal IO error, exiting...\n";
int xio_errhandler(Display *){ kDebugError("kdesud: Fatal IO error, exiting..."); kdesud_cleanup(); exit(1);}
3322 /local/tlutelli/issta_data/temp/c/2005_temp/2005/3322/78882f23290ccd305ca671ecb8ee7946692d879a/kdesud.cpp/clean/kdesu/kdesud/kdesud.cpp
kdDebug(KIO_SFTP_DB) << "kio_sftpProtocol::~kio_sftpProtocol(): pid = " << getpid() << endl;
kdDebug(KIO_SFTP_DB) << "~kio_sftpProtocol(): pid = " << getpid() << endl;
kio_sftpProtocol::~kio_sftpProtocol() { kdDebug(KIO_SFTP_DB) << "kio_sftpProtocol::~kio_sftpProtocol(): pid = " << getpid() << endl; closeConnection();}
3322 /local/tlutelli/issta_data/temp/c/2005_temp/2005/3322/4bcdd0c89af58223ef9b4bd9b943948e4ecaf1e8/kio_sftp.cpp/clean/kioslave/sftp/kio_sftp.cpp